mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01:00
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:
parent
21aca44ee1
commit
64e3e10c98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user