From 0526488eb0291d94540931cc6e6a4e5dd22a318d Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 1 Nov 2011 10:55:36 +0100 Subject: process_queued_blocked_changed: don't leak contacts --- telepathy-glib/connection-contact-list.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3