From f2c3392c84130c764c50305deca60e44a87374f3 Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Mon, 15 Aug 2011 15:04:56 -0400
Subject: [PATCH] * #6623: more leaks fixed in client

---
 gnome/src/contacts/calltree.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnome/src/contacts/calltree.c b/gnome/src/contacts/calltree.c
index c7a17b3481..a60b003c61 100644
--- a/gnome/src/contacts/calltree.c
+++ b/gnome/src/contacts/calltree.c
@@ -1042,7 +1042,8 @@ void calltree_add_history_entry (callable_obj_t *c, GtkTreeIter *parent)
     duration = get_call_duration (c);
     gchar * full_duration = g_strconcat (date , duration , NULL);
     g_free (duration);
-    description = g_strconcat (description , full_duration, NULL);
+    gchar * full_description = g_strconcat (description , full_duration, NULL);
+    g_free (description);
     g_free (full_duration);
 
     //Resize it
@@ -1056,12 +1057,12 @@ void calltree_add_history_entry (callable_obj_t *c, GtkTreeIter *parent)
 
     gtk_tree_store_set (history->store, &iter,
             0, pixbuf, // Icon
-            1, description, // Description
+            1, full_description, // Description
             2, pixbuf_security, // Icon
             3, c,      // Pointer
             -1);
 
-    g_free (description);
+    g_free (full_description);
 
     if (pixbuf != NULL)
         g_object_unref (G_OBJECT (pixbuf));
-- 
GitLab