]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-individual-store.c
Don't leak references to the contacts returned from empathy_contact_dup_from_folks_in...
[empathy.git] / libempathy-gtk / empathy-individual-store.c
index 2153d1ab85eea663bda7860890d9b93fe4023f8b..e8df8394f838a5be8b49d1f9eff5efa40b819151 100644 (file)
@@ -430,6 +430,8 @@ individual_store_add_individual (EmpathyIndividualStore *self,
     }
 
   individual_store_contact_update (self, individual);
+
+  tp_clear_object (&contact);
 }
 
 static void
@@ -1820,6 +1822,8 @@ individual_store_get_individual_status_icon_with_icon_name (
     }
 
   g_free (icon_name);
+  tp_clear_object (&contact);
+
   return pixbuf_status;
 }