aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-dispatcher.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-03 20:50:01 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-03 20:50:01 +0800
commitd6549f5d53123f131137b9248742afd5bb72afae (patch)
tree739b69e70d4c52a7d571108f55a3194941ef9fb9 /libempathy/empathy-dispatcher.c
parent256d304bd063ed5d4bd854ee5cdf9e0acd97389c (diff)
downloadgsoc2013-empathy-d6549f5d53123f131137b9248742afd5bb72afae.tar
gsoc2013-empathy-d6549f5d53123f131137b9248742afd5bb72afae.tar.gz
gsoc2013-empathy-d6549f5d53123f131137b9248742afd5bb72afae.tar.bz2
gsoc2013-empathy-d6549f5d53123f131137b9248742afd5bb72afae.tar.lz
gsoc2013-empathy-d6549f5d53123f131137b9248742afd5bb72afae.tar.xz
gsoc2013-empathy-d6549f5d53123f131137b9248742afd5bb72afae.tar.zst
gsoc2013-empathy-d6549f5d53123f131137b9248742afd5bb72afae.zip
Free the capabilities array. Fixes bug #577826
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2758
Diffstat (limited to 'libempathy/empathy-dispatcher.c')
-rw-r--r--libempathy/empathy-dispatcher.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index b3fd6a8a2..12c7da967 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -830,7 +830,6 @@ dispatcher_connection_ready_cb (TpConnection *connection,
}
/* Advertise VoIP capabilities */
- /* FIXME: Capabilities is leaked */
capabilities = g_ptr_array_sized_new (1);
cap_type = dbus_g_type_get_struct ("GValueArray", G_TYPE_STRING,
G_TYPE_UINT, G_TYPE_INVALID);
@@ -848,6 +847,9 @@ dispatcher_connection_ready_cb (TpConnection *connection,
connection, -1, capabilities, &remove,
dispatcher_connection_advertise_capabilities_cb,
NULL, NULL, G_OBJECT (dispatcher));
+
+ g_value_unset (&cap);
+ g_ptr_array_free (capabilities, TRUE);
}
static void