aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/e-photo-cache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/e-util/e-photo-cache.c b/e-util/e-photo-cache.c
index 96808392a1..32abcb47a1 100644
--- a/e-util/e-photo-cache.c
+++ b/e-util/e-photo-cache.c
@@ -774,9 +774,10 @@ photo_cache_finalize (GObject *object)
g_main_context_unref (priv->main_context);
g_hash_table_destroy (priv->photo_ht);
+ g_hash_table_destroy (priv->sources_ht);
- g_mutex_lock (&priv->photo_ht_lock);
- g_mutex_lock (&priv->sources_ht_lock);
+ g_mutex_clear (&priv->photo_ht_lock);
+ g_mutex_clear (&priv->sources_ht_lock);
/* Chain up to parent's finalize() method. */
G_OBJECT_CLASS (e_photo_cache_parent_class)->finalize (object);