[empathy] tube-handler: don't leak data and connection if connection is invalidated



commit 5d3fb4fdc5bfe04e639b44650d79efc7ff24e139
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Apr 28 09:58:41 2009 +0100

    tube-handler: don't leak data and connection if connection is invalidated
---
 libempathy/empathy-tube-handler.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libempathy/empathy-tube-handler.c b/libempathy/empathy-tube-handler.c
index ec12d18..cbd004d 100644
--- a/libempathy/empathy-tube-handler.c
+++ b/libempathy/empathy-tube-handler.c
@@ -96,6 +96,8 @@ connection_ready_cb (TpConnection *connection,
   if (error != NULL)
     {
       DEBUG ("connection has been invalidated: %s", error->message);
+      tube_ready_destroy_notify (data);
+      g_object_unref (connection);
       return;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]