allocate shell->highlight with GSlice.

2007-08-24  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c: allocate shell->highlight with
	GSlice.


svn path=/trunk/; revision=23364
This commit is contained in:
Michael Natterer 2007-08-24 16:07:44 +00:00 committed by Michael Natterer
parent 8f5819a5f6
commit 29759cd892
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2007-08-24 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell.c: allocate shell->highlight with
GSlice.
2007-08-24 Øyvind Kolås <pippin@gimp.org>
* app/display/gimpdisplayshell-render.c: swapped center and middle

View file

@ -456,7 +456,7 @@ gimp_display_shell_destroy (GtkObject *object)
if (shell->highlight)
{
g_free (shell->highlight);
g_slice_free (GdkRectangle, shell->highlight);
shell->highlight = NULL;
}
@ -1667,7 +1667,7 @@ gimp_display_shell_set_highlight (GimpDisplayShell *shell,
}
else
{
g_free (shell->highlight);
g_slice_free (GdkRectangle, shell->highlight);
shell->highlight = NULL;
gimp_display_shell_expose_full (shell);
@ -1675,7 +1675,7 @@ gimp_display_shell_set_highlight (GimpDisplayShell *shell,
}
else if (highlight)
{
shell->highlight = g_memdup (highlight, sizeof (GdkRectangle));
shell->highlight = g_slice_dup (GdkRectangle, highlight);
gimp_display_shell_expose_full (shell);
}