[gtk+/wip/gmenu] Bloatpad: Don't leak a menu model
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gmenu] Bloatpad: Don't leak a menu model
- Date: Thu, 1 Dec 2011 23:00:06 +0000 (UTC)
commit d7184c3bd032735e6bceab7f27185eadb5b893a6
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 1 17:41:46 2011 -0500
Bloatpad: Don't leak a menu model
examples/bloatpad.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/examples/bloatpad.c b/examples/bloatpad.c
index 1a2a050..d0614d1 100644
--- a/examples/bloatpad.c
+++ b/examples/bloatpad.c
@@ -188,6 +188,7 @@ create_window_menu (void)
menu = g_menu_new ();
g_menu_append_submenu (menu, "_Edit", (GMenuModel*)edit_menu);
+ g_object_unref (edit_menu);
return G_MENU_MODEL (menu);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]