[glib/wip/actions: 5/11] GApplication: unregister action interface export
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/actions: 5/11] GApplication: unregister action interface export
- Date: Fri, 1 Jul 2011 14:12:07 +0000 (UTC)
commit 96dfbc7731ca935e23c981f8dd6f9b4956bdd55f
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Jun 30 09:47:40 2011 +0100
GApplication: unregister action interface export
We missed a few cases of unexporting the action group interface (in
error cases, and on GApplication teardown).
gio/gapplicationimpl-dbus.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c
index 7be5627..679fc72 100644
--- a/gio/gapplicationimpl-dbus.c
+++ b/gio/gapplicationimpl-dbus.c
@@ -407,6 +407,9 @@ g_application_impl_destroy (GApplicationImpl *impl)
if (impl->object_id)
g_dbus_connection_unregister_object (impl->session_bus,
impl->object_id);
+ if (impl->action_id)
+ g_dbus_connection_unregister_object (impl->session_bus,
+ impl->action_id);
g_object_unref (impl->session_bus);
g_free (impl->object_path);
@@ -652,6 +655,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;
g_object_unref (impl->session_bus);
g_free (impl->object_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]