[empathy: 16/35] Don't leak EmpathyContact



commit 1a2bbd7b2824e683c772b4784b98dcd531e91089
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Thu Feb 10 15:56:02 2011 +1100

    Don't leak EmpathyContact

 libempathy/empathy-individual-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index a2432ef..01eb519 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -552,6 +552,8 @@ empathy_individual_manager_set_blocked (EmpathyIndividualManager *self,
       empathy_contact_list_set_blocked (
           EMPATHY_CONTACT_LIST (priv->contact_manager),
           contact, blocked);
+
+      g_object_unref (contact);
     }
 }
 



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