[gtk+/gtk-3-16] gtk-demo: Plug a memory leak



commit bcfa4eec25593865c48053cc4f313de10e0b6fb3
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 19 22:57:10 2015 -0400

    gtk-demo: Plug a memory leak

 demos/gtk-demo/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index c555136..b8131b9 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -543,7 +543,7 @@ add_data_tab (const gchar *demoname)
            * not an image. Let's try something else then.
            */
           g_object_ref_sink (widget);
-          gtk_widget_destroy (widget);
+          g_object_unref (widget);
 
           bytes = g_resources_lookup_data (resource_name, 0, NULL);
           g_assert (bytes);


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