From 1aba1ab6a14b7fb8be1678f56f43538aa1ec7fbf Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 24 Sep 2013 20:32:11 +0000 Subject: [PATCH] [r23191]Fix leaking Gtkosxapplication objects. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@23193 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-utils/gnc-main-window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gnome-utils/gnc-main-window.c b/src/gnome-utils/gnc-main-window.c index 322f9973fd..8640d6d5f7 100644 --- a/src/gnome-utils/gnc-main-window.c +++ b/src/gnome-utils/gnc-main-window.c @@ -3459,6 +3459,7 @@ gnc_quartz_set_menu(GncMainWindow* window) g_signal_connect(theApp, "NSApplicationBlockTermination", G_CALLBACK(gnc_quartz_should_quit), window); gtkosx_application_set_use_quartz_accelerators (theApp, FALSE); + g_object_unref (theApp); } #endif //MAC_INTEGRATION @@ -4083,6 +4084,7 @@ gnc_main_window_show_all_windows(void) G_CALLBACK(gnc_quartz_shutdown), NULL); gtkosx_application_ready(theApp); #endif + g_object_unref (theApp); } /** Get a pointer to the first active top level window or NULL