diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2011-03-17 19:29:38 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2011-03-17 19:50:39 +0800 |
commit | cf02fdd5166de8c92d2f66c7cbad7d2efc69d834 (patch) | |
tree | 6a243b975595ba17cfb1612d3168582942c9efb3 | |
parent | da856bbdcf471c120de701822e9befb5ffe7283b (diff) | |
download | gsoc2013-empathy-cf02fdd5166de8c92d2f66c7cbad7d2efc69d834.tar gsoc2013-empathy-cf02fdd5166de8c92d2f66c7cbad7d2efc69d834.tar.gz gsoc2013-empathy-cf02fdd5166de8c92d2f66c7cbad7d2efc69d834.tar.bz2 gsoc2013-empathy-cf02fdd5166de8c92d2f66c7cbad7d2efc69d834.tar.lz gsoc2013-empathy-cf02fdd5166de8c92d2f66c7cbad7d2efc69d834.tar.xz gsoc2013-empathy-cf02fdd5166de8c92d2f66c7cbad7d2efc69d834.tar.zst gsoc2013-empathy-cf02fdd5166de8c92d2f66c7cbad7d2efc69d834.zip |
Correct Call channel refcounting
The Call channel will get unreffed by the destroy function that's given
to empathy_tp_contact_factory_get_from_id. So don't unref it in the
callback explicitely
-rw-r--r-- | src/empathy-call-factory.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/empathy-call-factory.c b/src/empathy-call-factory.c index 76b28cf9a..48b711b89 100644 --- a/src/empathy-call-factory.c +++ b/src/empathy-call-factory.c @@ -274,7 +274,7 @@ call_channel_got_contact (TpConnection *connection, { /* FIXME use hangup with an appropriate error */ tp_channel_close_async (TP_CHANNEL (call), NULL, NULL); - goto out; + return; } handler = empathy_call_handler_new_for_channel (call, contact); @@ -283,9 +283,6 @@ call_channel_got_contact (TpConnection *connection, handler, FALSE); g_object_unref (handler); - -out: - g_object_unref (call); } |