[telepathy-gabble/master] Also unref the LmMessageHandler in error cases
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Fri Dec 18 06:08:15 PST 2009
---
lib/loudmouth/lm-connection.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lib/loudmouth/lm-connection.c b/lib/loudmouth/lm-connection.c
index fbed23f..9f5a3bc 100644
--- a/lib/loudmouth/lm-connection.c
+++ b/lib/loudmouth/lm-connection.c
@@ -168,13 +168,15 @@ iq_reply_cb (GObject *source,
{
g_debug ("send_iq_async failed: %s", error->message);
g_error_free (error);
- return;
+ goto out;
}
handler->function (handler, handler->connection, reply,
handler->user_data);
g_object_unref (reply);
+
+out:
lm_message_handler_unref (handler);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list