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.
This commit is contained in:
Ryan Lortie 2011-12-07 14:43:50 -05:00
parent 21aca44ee1
commit 64e3e10c98

View File

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