Unref an accessible's cache when destroying it
authorMike Gorse <mgorse@suse.com>
Sat, 19 Jul 2014 20:50:28 +0000 (15:50 -0500)
committerMike Gorse <mgorse@suse.com>
Sat, 19 Jul 2014 20:50:28 +0000 (15:50 -0500)
atspi/atspi-accessible.c

index 7dd9fcfc6a4f8a9beae2254e9689448c200ec674..23aad908dea2d3f79f32319e435dfa7b112a3d1d 100644 (file)
@@ -190,6 +190,8 @@ atspi_accessible_finalize (GObject *object)
   if (accessible->attributes)
     g_hash_table_unref (accessible->attributes);
 
+    _atspi_accessible_unref_cache (accessible);
+
 #ifdef DEBUG_REF_COUNTS
   accessible_count--;
   g_hash_table_remove (_atspi_get_live_refs (), accessible);