]> git.0d.be Git - empathy.git/commitdiff
Fix 2 leaks thanks to valgrind.
authorXavier Claessens <xclaesse@gmail.com>
Thu, 27 Sep 2007 10:48:02 +0000 (10:48 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 27 Sep 2007 10:48:02 +0000 (10:48 +0000)
2007-09-27  Xavier Claessens  <xclaesse@gmail.com>

* libempathy/empathy-utils.c:
* libempathy/empathy-contact-factory.c: Fix 2 leaks thanks to valgrind.

svn path=/trunk/; revision=325

ChangeLog
libempathy/empathy-contact-factory.c
libempathy/empathy-utils.c

index c5df062a09e9247db1cbfcb00157a7cd87d51958..c0bc7249ffddb0a2e6fcd278e2914f650b4b774e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-27  Xavier Claessens  <xclaesse@gmail.com>
+
+       * libempathy/empathy-utils.c:
+       * libempathy/empathy-contact-factory.c: Fix 2 leaks thanks to valgrind.
+
 2007-09-27  Xavier Claessens  <xclaesse@gmail.com>
 
        * tests/contact-manager.c:
index d6411ed54f3af8366f78cdda047138d058460143..e14914a1cd6362408160a648481e639405956289 100644 (file)
@@ -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
index 06442fe0513d95c9480513cd27c781b8d82a8f94..e0c6cfc9d886c92177b2a952c58c3794a71c3c8f 100644 (file)
@@ -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);