Fix a wrong free() call. (Thanks to Thomas Wood for catching that)

2007-01-17  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentchoosermenu.c: Fix a wrong free() call. (Thanks
	to Thomas Wood for catching that)

svn path=/branches/gtk-2-10/; revision=17172
This commit is contained in:
Emmanuele Bassi
2007-01-17 12:30:18 +00:00
committed by Emmanuele Bassi
parent d5bdb44d81
commit 00a92312e2
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2007-01-17 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c: Fix a wrong free() call. (Thanks
to Thomas Wood for catching that)
2007-01-17 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c: Don't use

View File

@@ -941,6 +941,8 @@ gtk_recent_chooser_menu_create_item (GtkRecentChooserMenu *menu,
item = gtk_image_menu_item_new_with_label (text);
}
g_free (text);
label = GTK_BIN (item)->child;
if (label)
{
@@ -962,9 +964,6 @@ gtk_recent_chooser_menu_create_item (GtkRecentChooserMenu *menu,
G_CALLBACK (item_activate_cb),
menu);
out:
g_free (label);
return item;
}