From ac2baa625e8c0bcb57a8ceec4d34d046135b0171 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 27 Sep 2007 10:48:02 +0000 Subject: Fix 2 leaks thanks to valgrind. 2007-09-27 Xavier Claessens * libempathy/empathy-utils.c: * libempathy/empathy-contact-factory.c: Fix 2 leaks thanks to valgrind. svn path=/trunk/; revision=325 --- libempathy/empathy-contact-factory.c | 1 + libempathy/empathy-utils.c | 1 + 2 files changed, 2 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-contact-factory.c b/libempathy/empathy-contact-factory.c index d6411ed54..e14914a1c 100644 --- a/libempathy/empathy-contact-factory.c +++ b/libempathy/empathy-contact-factory.c @@ -193,6 +193,7 @@ contact_factory_parse_presence_foreach (guint handle, presence ? empathy_presence_get_state (presence) : MC_PRESENCE_UNSET); empathy_contact_set_presence (contact, presence); + g_object_unref (presence); } static void diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 06442fe05..e0c6cfc9d 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -454,6 +454,7 @@ empathy_inspect_handle (McAccount *account, return NULL; } + g_array_free (handles, TRUE); name = *names; g_free (names); g_object_unref (tp_conn); -- cgit v1.2.3