summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-01 10:55:36 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-01 13:05:05 +0100
commit0526488eb0291d94540931cc6e6a4e5dd22a318d (patch)
tree1a24b58ac73bb65f290ef016e5136f569dd92a74
parent2ea9b904fc951506d3d0f95f99b3ad142391dd86 (diff)
process_queued_blocked_changed: don't leak contacts
-rw-r--r--telepathy-glib/connection-contact-list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-glib/connection-contact-list.c b/telepathy-glib/connection-contact-list.c
index 1e8388ca..d3236037 100644
--- a/telepathy-glib/connection-contact-list.c
+++ b/telepathy-glib/connection-contact-list.c
@@ -1747,6 +1747,7 @@ process_queued_blocked_changed (TpConnection *self)
if (contacts->len == 0)
{
blocked_changed_head_ready (self);
+ g_ptr_array_unref (contacts);
return;
}
@@ -1759,6 +1760,7 @@ process_queued_blocked_changed (TpConnection *self)
blocked_contacts_upgraded_cb, NULL, NULL, NULL);
g_array_unref (features);
+ g_ptr_array_unref (contacts);
}
static void