[gtk+/gestures: 121/173] gtk3-demo: Don't leak the color chooser



commit 8b8be282de975da54fc2c51bd720c2c695ff9d96
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 1 21:01:33 2014 -0400

    gtk3-demo: Don't leak the color chooser

 demos/gtk-demo/colorsel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/demos/gtk-demo/colorsel.c b/demos/gtk-demo/colorsel.c
index 566af21..73a9505 100644
--- a/demos/gtk-demo/colorsel.c
+++ b/demos/gtk-demo/colorsel.c
@@ -42,7 +42,7 @@ response_cb (GtkDialog *dialog,
       gtk_widget_override_background_color (da, 0, &color);
     }
 
-  gtk_widget_hide (GTK_WIDGET (dialog));
+  gtk_widget_destroy (GTK_WIDGET (dialog));
 }
 
 static void


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