From 3dab856103ec7e8d3fd418d86f2db2c99db27ef7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 17 Dec 2013 23:26:16 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/gtk/deprecated/gtkcolorsel.c b/gtk/deprecated/gtkcolorsel.c index 950bd3942b..fb5741b8cb 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"));