mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
GApplication: fix leaked object path
In the case that we fail to become the primary instance we should unregister *both* object paths that we registered during our attempt.
This commit is contained in:
parent
61704dbca5
commit
53389d963d
@ -659,6 +659,9 @@ g_application_impl_register (GApplication *application,
|
||||
g_dbus_connection_unregister_object (impl->session_bus,
|
||||
impl->object_id);
|
||||
impl->object_id = 0;
|
||||
g_dbus_connection_unregister_object (impl->session_bus,
|
||||
impl->action_id);
|
||||
impl->action_id = 0;
|
||||
|
||||
if (flags & G_APPLICATION_IS_SERVICE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user