[evolution/evolution-3-12] EPhotoCache: Fix a memory leak
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/evolution-3-12] EPhotoCache: Fix a memory leak
- Date: Tue, 25 Mar 2014 13:22:38 +0000 (UTC)
commit 7a060d5b60236cdfda4218f390a3d0cb23d06882
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]