diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2011-03-17 19:41:25 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2011-03-17 19:50:40 +0800 |
commit | 0f47819a414ea821e6eccafb678c399a39a901ec (patch) | |
tree | 2e7f9fcb9f98ae45baaa2f237c0fce24dc517473 | |
parent | e90884d588a170b130f2f1c4faf2ff14d70bdc10 (diff) | |
download | gsoc2013-empathy-0f47819a414ea821e6eccafb678c399a39a901ec.tar gsoc2013-empathy-0f47819a414ea821e6eccafb678c399a39a901ec.tar.gz gsoc2013-empathy-0f47819a414ea821e6eccafb678c399a39a901ec.tar.bz2 gsoc2013-empathy-0f47819a414ea821e6eccafb678c399a39a901ec.tar.lz gsoc2013-empathy-0f47819a414ea821e6eccafb678c399a39a901ec.tar.xz gsoc2013-empathy-0f47819a414ea821e6eccafb678c399a39a901ec.tar.zst gsoc2013-empathy-0f47819a414ea821e6eccafb678c399a39a901ec.zip |
When the remote side hangs up, clean up the call channel
-rw-r--r-- | src/empathy-call-handler.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/empathy-call-handler.c b/src/empathy-call-handler.c index a7aafad64..aff96bd6e 100644 --- a/src/empathy-call-handler.c +++ b/src/empathy-call-handler.c @@ -193,10 +193,17 @@ on_call_state_changed_cb (TpyCallChannel *call, GHashTable *call_state_details, EmpathyCallHandler *handler) { - if (state == TPY_CALL_STATE_ENDED) - tp_channel_close_async (TP_CHANNEL (call), NULL, NULL); + EmpathyCallHandlerPriv *priv = handler->priv; g_signal_emit (handler, signals[STATE_CHANGED], 0, state); + + if (state == TPY_CALL_STATE_ENDED) + { + tp_channel_close_async (TP_CHANNEL (call), NULL, NULL); + + tp_clear_object (&priv->call); + tp_clear_object (&priv->tfchannel); + } } static void |