]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact.c
empathy_avatar_new takes ownership of arguments. Do not free filename.
[empathy.git] / 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;
 }