Skip to content
Snippets Groups Projects
Commit f2c3392c authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #6623: more leaks fixed in client

parent b5fa385f
No related branches found
No related tags found
No related merge requests found
...@@ -1042,7 +1042,8 @@ void calltree_add_history_entry (callable_obj_t *c, GtkTreeIter *parent) ...@@ -1042,7 +1042,8 @@ void calltree_add_history_entry (callable_obj_t *c, GtkTreeIter *parent)
duration = get_call_duration (c); duration = get_call_duration (c);
gchar * full_duration = g_strconcat (date , duration , NULL); gchar * full_duration = g_strconcat (date , duration , NULL);
g_free (duration); 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); g_free (full_duration);
//Resize it //Resize it
...@@ -1056,12 +1057,12 @@ void calltree_add_history_entry (callable_obj_t *c, GtkTreeIter *parent) ...@@ -1056,12 +1057,12 @@ void calltree_add_history_entry (callable_obj_t *c, GtkTreeIter *parent)
gtk_tree_store_set (history->store, &iter, gtk_tree_store_set (history->store, &iter,
0, pixbuf, // Icon 0, pixbuf, // Icon
1, description, // Description 1, full_description, // Description
2, pixbuf_security, // Icon 2, pixbuf_security, // Icon
3, c, // Pointer 3, c, // Pointer
-1); -1);
g_free (description); g_free (full_description);
if (pixbuf != NULL) if (pixbuf != NULL)
g_object_unref (G_OBJECT (pixbuf)); g_object_unref (G_OBJECT (pixbuf));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment