[empathy] empathy_avatar_new takes ownership of arguments. Do not free filename.



commit 59741e29701de30b3cdb34a38cab4b48dd2384e7
Author: Xavier Claessens <xclaesse gmail com>
Date:   Wed Sep 16 15:20:36 2009 +0200

    empathy_avatar_new takes ownership of arguments. Do not free filename.

 libempathy/empathy-contact.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 0a097bb..fe25ff0 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -952,8 +952,8 @@ empathy_contact_load_avatar_cache (EmpathyContact *contact,
       empathy_contact_set_avatar (contact, avatar);
       empathy_avatar_unref (avatar);
     }
-
-  g_free (filename);
+  else
+    g_free (filename);
 
   return data != NULL;
 }



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