[Telepathy-commits] [telepathy-gabble/master] tube-stream: data_received_cb: unref the transport when early returning

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Dec 18 05:51:38 PST 2008


---
 src/tube-stream.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/tube-stream.c b/src/tube-stream.c
index ba7fde1..18c863d 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -1366,6 +1366,7 @@ data_received_cb (GabbleBytestreamIface *bytestream,
   {
     DEBUG ("sending failed: %s", error->message);
     g_error_free (error);
+    g_object_unref (transport);
     return;
   }
 
-- 
1.5.6.5



More information about the Telepathy-commits mailing list