From 5d3fb4fdc5bfe04e639b44650d79efc7ff24e139 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 28 Apr 2009 09:58:41 +0100 Subject: tube-handler: don't leak data and connection if connection is invalidated --- libempathy/empathy-tube-handler.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-tube-handler.c b/libempathy/empathy-tube-handler.c index ec12d18ba..cbd004d14 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; } -- cgit v1.2.3