[glib] action exporter: cancel pending events on unexport
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] action exporter: cancel pending events on unexport
- Date: Thu, 8 Dec 2011 23:15:13 +0000 (UTC)
commit 64e3e10c9827ff53c8388ebfb672810a6c5fa658
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Dec 7 14:43:50 2011 -0500
action exporter: cancel pending events on unexport
If there are events pending when we unexport the action group, free them
and cancel the pending idle.
gio/gactiongroupexporter.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gio/gactiongroupexporter.c b/gio/gactiongroupexporter.c
index 9c78487..443a000 100644
--- a/gio/gactiongroupexporter.c
+++ b/gio/gactiongroupexporter.c
@@ -553,6 +553,11 @@ g_action_group_exporter_free (gpointer user_data)
for (i = 0; i < G_N_ELEMENTS (exporter->signal_ids); i++)
g_signal_handler_disconnect (exporter->action_group, exporter->signal_ids[i]);
+
+ g_hash_table_unref (exporter->pending_changes);
+ if (exporter->pending_id)
+ g_source_remove (exporter->pending_id);
+
g_object_unref (exporter->connection);
g_object_unref (exporter->action_group);
g_free (exporter->object_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]