[empathy/mc5] Free the allocated dirname after usage



commit 1cd5827a7e47c76834ed22ab4548a564623d3245
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Mon Aug 24 11:37:23 2009 +0100

    Free the allocated dirname after usage

 libempathy/empathy-log-store-empathy.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-log-store-empathy.c b/libempathy/empathy-log-store-empathy.c
index 8b22879..9963bfc 100644
--- a/libempathy/empathy-log-store-empathy.c
+++ b/libempathy/empathy-log-store-empathy.c
@@ -419,6 +419,7 @@ log_store_empathy_search_hit_new (EmpathyLogStore *self,
     {
       EmpathyAccount *account = EMPATHY_ACCOUNT (l->data);
       gchar *name;
+
       name = log_store_account_to_dirname (account);
       if (!tp_strdiff (name, account_name))
         {
@@ -427,6 +428,7 @@ log_store_empathy_search_hit_new (EmpathyLogStore *self,
           g_object_ref (account);
         }
       g_object_unref (account);
+      g_free (name);
     }
   g_list_free (accounts);
 



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