aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-04-28 16:58:41 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-04-28 16:58:41 +0800
commit5d3fb4fdc5bfe04e639b44650d79efc7ff24e139 (patch)
tree23bc9395c383c1031e42399ed67f091191c0e89d
parent46fcfa0a1c15e58b98cfec0c1ce998dee6de5a40 (diff)
downloadgsoc2013-empathy-5d3fb4fdc5bfe04e639b44650d79efc7ff24e139.tar
gsoc2013-empathy-5d3fb4fdc5bfe04e639b44650d79efc7ff24e139.tar.gz
gsoc2013-empathy-5d3fb4fdc5bfe04e639b44650d79efc7ff24e139.tar.bz2
gsoc2013-empathy-5d3fb4fdc5bfe04e639b44650d79efc7ff24e139.tar.lz
gsoc2013-empathy-5d3fb4fdc5bfe04e639b44650d79efc7ff24e139.tar.xz
gsoc2013-empathy-5d3fb4fdc5bfe04e639b44650d79efc7ff24e139.tar.zst
gsoc2013-empathy-5d3fb4fdc5bfe04e639b44650d79efc7ff24e139.zip
tube-handler: don't leak data and connection if connection is invalidated
-rw-r--r--libempathy/empathy-tube-handler.c2
1 files changed, 2 insertions, 0 deletions
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;
}