Don't leak text.

2005-12-07  Matthias Clasen  <mclasen@redhat.com>

	* demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
	leak text.
This commit is contained in:
Matthias Clasen 2005-12-07 19:50:39 +00:00 committed by Matthias Clasen
parent 85fda2788d
commit e75323a558
3 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2005-12-07 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
leak text.
* gtk/gtktoolbutton.c (clone_image_menu_size): Fix a
variable name clash. (#323475, Ross Burton)

View File

@ -1,5 +1,8 @@
2005-12-07 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
leak text.
* gtk/gtktoolbutton.c (clone_image_menu_size): Fix a
variable name clash. (#323475, Ross Burton)

View File

@ -64,6 +64,8 @@ set_cell_color (GtkCellLayout *cell_layout,
(color.green >> 8) << 16 |
(color.blue >> 8) << 8;
g_free (text);
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 24, 24);
gdk_pixbuf_fill (pixbuf, pixel);