[gtk+] Bloatpad: Don't leak a menu model
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Bloatpad: Don't leak a menu model
- Date: Mon, 19 Dec 2011 17:59:35 +0000 (UTC)
commit 396876969ac98cf507e88a51d9c431a8c9264c31
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]