[gtk+] GtkColorSelection: Don't leak a context menu



commit 3dab856103ec7e8d3fd418d86f2db2c99db27ef7
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 17 23:26:16 2013 -0500

    GtkColorSelection: Don't leak a context menu
    
    This was pointed out in
    https://bugzilla.gnome.org/show_bug.cgi?id=720401

 gtk/deprecated/gtkcolorsel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/deprecated/gtkcolorsel.c b/gtk/deprecated/gtkcolorsel.c
index 950bd39..fb5741b 100644
--- a/gtk/deprecated/gtkcolorsel.c
+++ b/gtk/deprecated/gtkcolorsel.c
@@ -1485,6 +1485,7 @@ do_popup (GtkColorSelection *colorsel,
                      colorsel);
 
   menu = gtk_menu_new ();
+  g_signal_connect (menu, "hide", G_CALLBACK (gtk_widget_destroy), NULL);
 
   mi = gtk_menu_item_new_with_mnemonic (_("_Save color here"));
 


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