[evolution] EPhotoCache: Fix a memory leak



commit 2d3b5ede7ab77f2864e24c36ca8544634ecbc975
Author: Milan Crha <mcrha redhat com>
Date:   Tue Mar 25 14:14:02 2014 +0100

    EPhotoCache: Fix a memory leak

 e-util/e-photo-cache.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-photo-cache.c b/e-util/e-photo-cache.c
index 9680839..32abcb4 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);


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