[empathy/gnome-2-32] individual_store_name_sort_func: don't leak names



commit b0bf4030adcc7b73eab4fffea81978213ebb7799
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Nov 18 14:18:05 2010 +0100

    individual_store_name_sort_func: don't leak names

 libempathy-gtk/empathy-individual-store.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-store.c b/libempathy-gtk/empathy-individual-store.c
index 77f3016..d6dc53a 100644
--- a/libempathy-gtk/empathy-individual-store.c
+++ b/libempathy-gtk/empathy-individual-store.c
@@ -1470,6 +1470,8 @@ individual_store_name_sort_func (GtkTreeModel *model,
 
   tp_clear_object (&individual_a);
   tp_clear_object (&individual_b);
+  g_free (name_a);
+  g_free (name_b);
 
   return ret_val;
 }



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