[clutter] a11y: Remove key event listener hash table if no longer required



commit 0d4d467dd55ac23151a32e52195d47b6ab7706ca
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Mon Jun 18 11:30:25 2012 +0200

    a11y: Remove key event listener hash table if no longer required
    
    https://bugzilla.gnome.org/show_bug.cgi?id=675183

 clutter/cally/cally-util.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/cally/cally-util.c b/clutter/cally/cally-util.c
index e4c90a7..1fcbf83 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 ();
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]