summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2010-10-08 17:19:51 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2010-10-13 11:28:11 -0400
commit97dbbfad80b373586e6d37d4a4e664e7b78b56d0 (patch)
tree5f6d3be23cf4391c612634000706c1e885863a64 /tests
parent14df6aef00ab2880bb86ac86f88b9193ea8848cc (diff)
Don't leak errors
Diffstat (limited to 'tests')
-rw-r--r--tests/wocky-test-connector-server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/wocky-test-connector-server.c b/tests/wocky-test-connector-server.c
index b13987d..98e5fd5 100644
--- a/tests/wocky-test-connector-server.c
+++ b/tests/wocky-test-connector-server.c
@@ -1045,10 +1045,9 @@ quit (GObject *source,
{
TestConnectorServer *self = TEST_CONNECTOR_SERVER (data);
TestConnectorServerPrivate *priv = self->priv;
- GError *error = NULL;
DEBUG ("");
- wocky_xmpp_connection_send_close_finish (priv->conn, result, &error);
+ wocky_xmpp_connection_send_close_finish (priv->conn, result, NULL);
server_dec_outstanding (self);
}
@@ -1105,6 +1104,7 @@ starttls (GObject *source,
if (!wocky_xmpp_connection_send_stanza_finish (conn, result, &error))
{
DEBUG ("Sending starttls '<proceed...>' failed: %s", error->message);
+ g_error_free (error);
server_dec_outstanding (self);
return;
}
@@ -1151,6 +1151,7 @@ xmpp_handler (GObject *source,
{
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
{
+ g_error_free (error);
server_dec_outstanding (self);
return;
}
@@ -1317,11 +1318,10 @@ xmpp_closed (GObject *source,
GAsyncResult *result,
gpointer data)
{
- GError *error = NULL;
TestConnectorServer *self = TEST_CONNECTOR_SERVER (data);
TestConnectorServerPrivate *priv = self->priv;
DEBUG ("Connection closed");
- wocky_xmpp_connection_send_close_finish (priv->conn, result, &error);
+ wocky_xmpp_connection_send_close_finish (priv->conn, result, NULL);
}
static void startssl (TestConnectorServer *self)