diff options
author | Mike Gorse <mgorse@suse.com> | 2014-07-19 16:26:52 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2014-07-19 16:26:52 -0500 |
commit | f33fd585e1e18eacec271582ffb9956965a4f146 (patch) | |
tree | c8025449fe3696c8e0af6f80ec7115c70f79d1cf /atspi/atspi-accessible.c | |
parent | be5a14c9c8507c5b67868c89c5442cc9ba1160aa (diff) | |
download | at-spi2-core-f33fd585e1e18eacec271582ffb9956965a4f146.tar.gz |
Fix lifecycle of an accessible's cache
When a cache is referenced in response to an event, it is supposed
to be unref'd after the event handler has been called.
Diffstat (limited to 'atspi/atspi-accessible.c')
-rw-r--r-- | atspi/atspi-accessible.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c index 23aad908..b294a5d1 100644 --- a/atspi/atspi-accessible.c +++ b/atspi/atspi-accessible.c @@ -190,7 +190,8 @@ atspi_accessible_finalize (GObject *object) if (accessible->attributes) g_hash_table_unref (accessible->attributes); - _atspi_accessible_unref_cache (accessible); + if (accessible->priv->cache) + g_hash_table_destroy (accessible->priv->cache); #ifdef DEBUG_REF_COUNTS accessible_count--; |