[next] telepathy-glib: tp_svc_interface_skeleton_get_properties: don' t leak the parent object

Simon McVittie smcv at kemper.freedesktop.org
Wed May 7 02:18:22 PDT 2014


Module: telepathy-glib
Branch: next
Commit: b51097a3391ffbcf1d652504dc5c6271a2e627fe
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=b51097a3391ffbcf1d652504dc5c6271a2e627fe

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Thu Apr 10 12:34:48 2014 +0100

tp_svc_interface_skeleton_get_properties: don't leak the parent object

Reviewed-by: Xavier Claessens <xavier.claessens at collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77189

---

 telepathy-glib/svc-interface-skeleton.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/telepathy-glib/svc-interface-skeleton.c b/telepathy-glib/svc-interface-skeleton.c
index 5fd9de2..b1f6144 100644
--- a/telepathy-glib/svc-interface-skeleton.c
+++ b/telepathy-glib/svc-interface-skeleton.c
@@ -183,6 +183,7 @@ tp_svc_interface_skeleton_get_properties (GDBusInterfaceSkeleton *skel)
 
   ret = g_variant_ref_sink (tp_asv_to_vardict (asv));
   g_hash_table_unref (asv);
+  g_object_unref (object);
   return ret;
 }
 



More information about the telepathy-commits mailing list