summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2010-03-30 23:32:59 (GMT)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2010-03-30 23:32:59 (GMT)
commitf22cfb549c19eb25e6f027a626c2133f60494def (patch)
tree6a853696e82a9546dff445b90007f5077525e4e2
parente9d31f1d3f075090dd3c18deda8112f7dca38cc2 (diff)
downloadwocky-trivia.tar.gz
wocky-trivia.tar.xz
Remove g_error_free after g_propagate_error.trivia
g_propagate_error doesn't copy the error, it just sets it from dst to src. So by freeing it here, it causes a double free later on which causes wocky to segfault.
-rw-r--r--wocky/wocky-xmpp-connection.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/wocky/wocky-xmpp-connection.c b/wocky/wocky-xmpp-connection.c
index 3ae9521..9057ef0 100644
--- a/wocky/wocky-xmpp-connection.c
+++ b/wocky/wocky-xmpp-connection.c
@@ -878,7 +878,6 @@ wocky_xmpp_connection_recv_stanza_finish (WockyXmppConnection *connection,
g_assert (e != NULL);
g_propagate_error (error, e);
- g_error_free (e);
break;
}