diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-04-03 20:50:01 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-04-03 20:50:01 +0800 |
commit | d6549f5d53123f131137b9248742afd5bb72afae (patch) | |
tree | 739b69e70d4c52a7d571108f55a3194941ef9fb9 /libempathy | |
parent | 256d304bd063ed5d4bd854ee5cdf9e0acd97389c (diff) | |
download | gsoc2013-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')
-rw-r--r-- | libempathy/empathy-dispatcher.c | 4 |
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 |