]> git.0d.be Git - empathy.git/commitdiff
empathy_avatar_new takes ownership of arguments. Do not free filename.
authorXavier Claessens <xclaesse@gmail.com>
Wed, 16 Sep 2009 13:20:36 +0000 (15:20 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 16 Sep 2009 13:24:44 +0000 (15:24 +0200)
libempathy/empathy-contact.c

index 0a097bb4d667f6e3b29a132b01c207b9073fbf3a..fe25ff003994e8f1fcf3f64d838bfb02fc72638b 100644 (file)
@@ -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;
 }