From 396876969ac98cf507e88a51d9c431a8c9264c31 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 1 Dec 2011 17:41:46 -0500 Subject: [PATCH] Bloatpad: Don't leak a menu model --- examples/bloatpad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/bloatpad.c b/examples/bloatpad.c index 1a2a050e68..d0614d10d2 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); }