[gtk+] Plug a mem leak



commit a2420c7db59e107b25e35b292849833786cc9437
Author: Christian Persch <chpe gnome org>
Date:   Sat Aug 29 20:40:50 2009 -0400

    Plug a mem leak
    
    The filechooser was leaking tooltips. Reported in bug bug 593080.

 gtk/gtkfilechooserdefault.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 1c0e5e3..f77041a 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -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.  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]