[telepathy-gabble/master] if gabble_file_transfer_channel_offer_file fails the channel has not been added to the list yet so we can unref it directly
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Mar 30 04:17:29 PDT 2009
---
src/ft-manager.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/ft-manager.c b/src/ft-manager.c
index 9ce9f92..6580838 100644
--- a/src/ft-manager.c
+++ b/src/ft-manager.c
@@ -389,9 +389,7 @@ gabble_ft_manager_handle_request (TpChannelManager *manager,
if (!gabble_file_transfer_channel_offer_file (chan, &error))
{
- /* Pretend the chan was closed so it's removed from the channels
- * list and unreffed. */
- file_channel_closed (self, chan);
+ g_object_unref (chan);
goto error;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list