aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-03-25 21:14:02 +0800
committerMilan Crha <mcrha@redhat.com>2014-03-25 21:14:02 +0800
commit2d3b5ede7ab77f2864e24c36ca8544634ecbc975 (patch)
tree75cca30d06d1505d44b5c3d8dffd2897027260f7 /e-util
parent8692b1cb72654888f0dab31843bdf05d3ac2a888 (diff)
downloadgsoc2013-evolution-2d3b5ede7ab77f2864e24c36ca8544634ecbc975.tar
gsoc2013-evolution-2d3b5ede7ab77f2864e24c36ca8544634ecbc975.tar.gz
gsoc2013-evolution-2d3b5ede7ab77f2864e24c36ca8544634ecbc975.tar.bz2
gsoc2013-evolution-2d3b5ede7ab77f2864e24c36ca8544634ecbc975.tar.lz
gsoc2013-evolution-2d3b5ede7ab77f2864e24c36ca8544634ecbc975.tar.xz
gsoc2013-evolution-2d3b5ede7ab77f2864e24c36ca8544634ecbc975.tar.zst
gsoc2013-evolution-2d3b5ede7ab77f2864e24c36ca8544634ecbc975.zip
EPhotoCache: Fix a memory leak
Diffstat (limited to 'e-util')
-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);