mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix leaking Gtkosxapplication objects.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23191 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f8cf8bba1b
commit
378a419f8d
@ -3689,6 +3689,7 @@ gnc_quartz_set_menu(GncMainWindow* window)
|
|||||||
g_signal_connect(theApp, "NSApplicationBlockTermination",
|
g_signal_connect(theApp, "NSApplicationBlockTermination",
|
||||||
G_CALLBACK(gnc_quartz_should_quit), window);
|
G_CALLBACK(gnc_quartz_should_quit), window);
|
||||||
gtkosx_application_set_use_quartz_accelerators (theApp, FALSE);
|
gtkosx_application_set_use_quartz_accelerators (theApp, FALSE);
|
||||||
|
g_object_unref (theApp);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif //MAC_INTEGRATION
|
#endif //MAC_INTEGRATION
|
||||||
@ -4364,6 +4365,7 @@ gnc_main_window_show_all_windows(void)
|
|||||||
G_CALLBACK(gnc_quartz_shutdown), NULL);
|
G_CALLBACK(gnc_quartz_shutdown), NULL);
|
||||||
gtkosx_application_ready(theApp);
|
gtkosx_application_ready(theApp);
|
||||||
#endif
|
#endif
|
||||||
|
g_object_unref (theApp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get a pointer to the first active top level window or NULL
|
/** Get a pointer to the first active top level window or NULL
|
||||||
|
Loading…
Reference in New Issue
Block a user