summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-07-22 16:41:04 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-07-29 12:03:11 +0100
commitd473cecb3164ebac975e491e0050d4dd67a68c20 (patch)
tree00fb9b3c7d6b965426826356329aaea998c93025
parent18e690252a2fcc5090504ecdf05787a558077cfe (diff)
connection_force_close_cb: unref the receive_cancellable once the connection has been closed
-rw-r--r--wocky/wocky-porter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wocky/wocky-porter.c b/wocky/wocky-porter.c
index 0345cd7..793080e 100644
--- a/wocky/wocky-porter.c
+++ b/wocky/wocky-porter.c
@@ -850,6 +850,12 @@ connection_force_close_cb (GObject *source,
g_error_free (error);
}
+ if (priv->receive_cancellable != NULL)
+ {
+ g_object_unref (priv->receive_cancellable);
+ priv->receive_cancellable = NULL;
+ }
+
DEBUG ("XMPP connection has been closed; complete the force close operation");
priv->force_close_result = NULL;
g_simple_async_result_complete (r);