[gtk+/wip/action-helper] gtkmodelmenu: fix memory leak



commit 09721bb41cb58b927cc0b8b3a7df1e2bfee9d6b1
Author: Lars Uebernickel <lars uebernic de>
Date:   Mon Jun 25 20:07:01 2012 +0200

    gtkmodelmenu: fix memory leak

 gtk/gtkmodelmenu.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmodelmenu.c b/gtk/gtkmodelmenu.c
index 2b1ef3c..1cecc63 100644
--- a/gtk/gtkmodelmenu.c
+++ b/gtk/gtkmodelmenu.c
@@ -97,6 +97,8 @@ gtk_model_menu_binding_append_item (GtkModelMenuBinding  *binding,
         {
           gtk_model_menu_binding_append_model (binding, section, section_namespace, FALSE);
         }
+
+      g_object_unref (section);
     }
   else
     {



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