[next] telepathy-glib: future-account: stop leaking a GArray

Jonny Lamb jonny at kemper.freedesktop.org
Fri May 11 02:41:38 PDT 2012


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

Author: Jonny Lamb <jonny.lamb at collabora.co.uk>
Date:   Mon May  7 19:07:45 2012 +0100

future-account: stop leaking a GArray

Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>

---

 telepathy-glib/future-account.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/future-account.c b/telepathy-glib/future-account.c
index 4aee979..a0d75d5 100644
--- a/telepathy-glib/future-account.c
+++ b/telepathy-glib/future-account.c
@@ -965,6 +965,8 @@ tp_future_account_set_avatar (TpFutureAccount *self,
       G_TYPE_STRING, mime_type,
       G_TYPE_INVALID);
 
+  g_array_unref (tmp);
+
   tp_asv_take_boxed (priv->properties,
       TP_PROP_ACCOUNT_INTERFACE_AVATAR_AVATAR,
       TP_STRUCT_TYPE_AVATAR, arr);



More information about the telepathy-commits mailing list