From 378a419f8d799b864e10491a95440ad0a1cd72c9 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 24 Sep 2013 20:11:11 +0000 Subject: [PATCH] Fix leaking Gtkosxapplication objects. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23191 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 8e3eff294c..6acb7e870f 100644 --- a/src/gnome-utils/gnc-main-window.c +++ b/src/gnome-utils/gnc-main-window.c @@ -3689,6 +3689,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 @@ -4364,6 +4365,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