a11y: Remove key event listener hash table if no longer required
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 18 Jun 2012 09:30:25 +0000 (11:30 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 18 Jun 2012 10:44:59 +0000 (12:44 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=675183

clutter/cally/cally-util.c

index e4c90a7..1fcbf83 100644 (file)
@@ -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 ();
     }
 }