]> Pileus Git - ~andy/gtk/commitdiff
Plug a mem leak
authorChristian Persch <chpe@gnome.org>
Sun, 30 Aug 2009 00:40:50 +0000 (20:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 30 Aug 2009 00:40:50 +0000 (20:40 -0400)
The filechooser was leaking tooltips. Reported in bug bug 593080.

gtk/gtkfilechooserdefault.c

index 1c0e5e311038eb167e41c0701ef361aa9a2a06bc..f77041af3802ed6a2757712c98f95b4424612cb5 100644 (file)
@@ -4892,6 +4892,7 @@ save_folder_update_tooltip (GtkComboBox           *combo,
   gtk_widget_set_tooltip_text (GTK_WIDGET (combo), tooltip);
   gtk_widget_set_has_tooltip (GTK_WIDGET (combo),
                               gtk_widget_get_sensitive (GTK_WIDGET (combo)));
+  g_free (tooltip);
 }
 
 /* Filter function used to filter out the Search item and its separator.