Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
GApplication: unregister bus name
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Clasen committed Nov 19, 2011
1 parent 6c7387f commit d920cb6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gio/gapplicationimpl-dbus.c
Expand Up @@ -408,6 +408,17 @@ g_application_impl_destroy (GApplicationImpl *impl)
g_dbus_connection_unregister_object (impl->session_bus,
impl->object_id);

g_dbus_connection_call (impl->session_bus,
"org.freedesktop.DBus",
"/org/freedesktop/DBus",
"org.freedesktop.DBus",
"ReleaseName",
g_variant_new ("(s)",
impl->bus_name),
NULL,
G_DBUS_CALL_FLAGS_NONE,
-1, NULL, NULL, NULL);

g_object_unref (impl->session_bus);
g_free (impl->object_path);
}
Expand Down

0 comments on commit d920cb6

Please sign in to comment.