mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 03:04:05 +02:00
GApplication: unregister bus name
https://bugzilla.gnome.org/show_bug.cgi?id=647987
This commit is contained in:
@@ -408,6 +408,17 @@ g_application_impl_destroy (GApplicationImpl *impl)
|
|||||||
g_dbus_connection_unregister_object (impl->session_bus,
|
g_dbus_connection_unregister_object (impl->session_bus,
|
||||||
impl->object_id);
|
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_object_unref (impl->session_bus);
|
||||||
g_free (impl->object_path);
|
g_free (impl->object_path);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user