diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-07-12 16:19:40 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-07-12 16:19:40 +0100 |
commit | d485129ddd30936589b8ee190043425cf6f9346b (patch) | |
tree | 18095d9bfd2b6d862eeaf44b7fcc6c545b208957 /telepathy-glib/text-channel.c | |
parent | 6ab2ef14112276f43196d98a8c51f4fea149f874 (diff) | |
download | telepathy-glib-d485129ddd30936589b8ee190043425cf6f9346b.tar.gz |
TextChannel: don't leak self pointer in contacts cbs
In got_pending_senders_contact_by_handle_cb and
got_pending_senders_contact_by_id_cb, we get a pointer to ourself using
g_async_result_get_source_object, which returns a new reference rather
than borrowing one. So we need to unref.
Diffstat (limited to 'telepathy-glib/text-channel.c')
-rw-r--r-- | telepathy-glib/text-channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-glib/text-channel.c b/telepathy-glib/text-channel.c index 5c52d6acf..77157cdb4 100644 --- a/telepathy-glib/text-channel.c +++ b/telepathy-glib/text-channel.c @@ -640,6 +640,7 @@ got_pending_senders_contact_by_handle_cb (TpConnection *connection, out: g_simple_async_result_complete (result); g_object_unref (result); + g_object_unref (self); } static void @@ -682,6 +683,7 @@ got_pending_senders_contact_by_id_cb (TpConnection *connection, out: g_simple_async_result_complete (result); g_object_unref (result); + g_object_unref (self); } /* There is no TP_ARRAY_TYPE_PENDING_TEXT_MESSAGE_LIST_LIST (fdo #32433) */ |