diff --git a/clutter/cally/cally-util.c b/clutter/cally/cally-util.c index e4c90a7a4..1fcbf8343 100644 --- a/clutter/cally/cally-util.c +++ b/clutter/cally/cally-util.c @@ -261,6 +261,8 @@ cally_util_remove_key_event_listener (guint remove_listener) if (g_hash_table_size (key_listener_list) == 0) { + g_hash_table_destroy (key_listener_list); + key_listener_list = NULL; cally_util_simulate_snooper_remove (); } }