GApplication: unregister bus name

https://bugzilla.gnome.org/show_bug.cgi?id=647987
This commit is contained in:
Matthias Clasen 2011-11-17 23:30:32 -05:00
parent 6c7387f6d1
commit d920cb6bdb

View File

@ -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);
}