[empathy/gnome-2-28-candidate] empathy_avatar_new takes ownership of arguments. Do not free filename.
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-28-candidate] empathy_avatar_new takes ownership of arguments. Do not free filename.
- Date: Wed, 16 Sep 2009 13:27:27 +0000 (UTC)
commit bd994c5cce7a23d8673600e4b0a728c96f81d313
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]