aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-09-27 18:48:02 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-09-27 18:48:02 +0800
commit377b6c9ea68533543d5038b4dc9ea98a9bc6712a (patch)
treecce9d42c4e556898f39f9cb5c810fbbc169ef2c1 /libempathy
parentd61010d5609a5a773d562012adddef8304bc6d14 (diff)
downloadgsoc2013-empathy-377b6c9ea68533543d5038b4dc9ea98a9bc6712a.tar
gsoc2013-empathy-377b6c9ea68533543d5038b4dc9ea98a9bc6712a.tar.gz
gsoc2013-empathy-377b6c9ea68533543d5038b4dc9ea98a9bc6712a.tar.bz2
gsoc2013-empathy-377b6c9ea68533543d5038b4dc9ea98a9bc6712a.tar.lz
gsoc2013-empathy-377b6c9ea68533543d5038b4dc9ea98a9bc6712a.tar.xz
gsoc2013-empathy-377b6c9ea68533543d5038b4dc9ea98a9bc6712a.tar.zst
gsoc2013-empathy-377b6c9ea68533543d5038b4dc9ea98a9bc6712a.zip
2007-09-27 Xavier Claessens <xclaesse@gmail.com>
* libempathy/empathy-utils.c: * libempathy/empathy-contact-factory.c: Fix 2 leaks thanks to valgrind. git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@325 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact-factory.c1
-rw-r--r--libempathy/empathy-utils.c1
2 files changed, 2 insertions, 0 deletions
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);