diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-04-09 14:27:18 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-04-09 14:27:18 +0000 |
commit | 797855f5a9ff7eaff1a02c95fee72115238af99d (patch) | |
tree | 83c19506aed43496af35eff9afa39460330fdbb3 | |
parent | 8f949750e14591bb6fd3ce323a9c80ae3491310a (diff) |
TpTextMixin: ListPendingMessages: don't leak the GValueArrays and their contents
-rw-r--r-- | telepathy-glib/text-mixin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/telepathy-glib/text-mixin.c b/telepathy-glib/text-mixin.c index 6702662c0..1e7b1d4cc 100644 --- a/telepathy-glib/text-mixin.c +++ b/telepathy-glib/text-mixin.c @@ -601,8 +601,14 @@ tp_text_mixin_list_pending_messages_async (TpSvcChannelTypeText *iface, if (tp_text_mixin_list_pending_messages (G_OBJECT (iface), clear, &ret, &error)) { + guint i; + tp_svc_channel_type_text_return_from_list_pending_messages ( context, ret); + + for (i = 0; i < ret->len; i++) + g_value_array_free (g_ptr_array_index (ret, i)); + g_ptr_array_free (ret, TRUE); } else |