[Telepathy-commits] [telepathy-salut/master] salut_ft_manager_handle_request: call file_channel_closed_cb instead of unreffing the channel if salut_file_transfer_channel_offer_file failed so we don't unref the channel twice
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Dec 22 06:49:19 PST 2008
---
src/salut-ft-manager.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/salut-ft-manager.c b/src/salut-ft-manager.c
index 87bf1cc..e540495 100644
--- a/src/salut-ft-manager.c
+++ b/src/salut-ft-manager.c
@@ -450,8 +450,9 @@ salut_ft_manager_handle_request (TpChannelManager *manager,
if (!salut_file_transfer_channel_offer_file (chan, &error))
{
- /* Destroying the channel will emit the "closed" signal. */
- g_object_unref (chan);
+ /* Pretend the chan was closed so it's removed from the channels
+ * list and unreffed. */
+ file_channel_closed_cb (chan, self);
goto error;
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list