aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-03-17 19:29:38 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 17:20:07 +0800
commitb49fd754dd479be529fc12d2e82498ed02d31512 (patch)
tree7ed82ed38019ddab51cd80c6feae987127325645
parent7992d97253ff1cecb4281191d0af459799ce9a21 (diff)
downloadgsoc2013-empathy-b49fd754dd479be529fc12d2e82498ed02d31512.tar
gsoc2013-empathy-b49fd754dd479be529fc12d2e82498ed02d31512.tar.gz
gsoc2013-empathy-b49fd754dd479be529fc12d2e82498ed02d31512.tar.bz2
gsoc2013-empathy-b49fd754dd479be529fc12d2e82498ed02d31512.tar.lz
gsoc2013-empathy-b49fd754dd479be529fc12d2e82498ed02d31512.tar.xz
gsoc2013-empathy-b49fd754dd479be529fc12d2e82498ed02d31512.tar.zst
gsoc2013-empathy-b49fd754dd479be529fc12d2e82498ed02d31512.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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/empathy-call-factory.c b/src/empathy-call-factory.c
index 9ee4a9567..135e4e238 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);
}