summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-11-27 17:45:51 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-12-06 16:28:20 +0000
commit0d908c122903a384882eff7de0e9ec6d6058d661 (patch)
treeb996e10addd40f9aed2d7e30f9d4d008bb9a58a1
parent89346a8c8f48add8b090b31a9c63f8239f9bf761 (diff)
Don't crash when creating invisible privacy list fails.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=57521
-rw-r--r--src/conn-presence.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/conn-presence.c b/src/conn-presence.c
index 9dfd6b6b1..11c7d4f2a 100644
--- a/src/conn-presence.c
+++ b/src/conn-presence.c
@@ -706,10 +706,7 @@ create_invisible_privacy_list_reply_cb (GabbleConnection *conn,
GError *error = NULL;
if (wocky_stanza_extract_errors (reply_msg, NULL, &error, NULL, NULL))
- {
- g_simple_async_result_set_from_error (result, error);
- g_free (error);
- }
+ g_simple_async_result_take_error (result, error);
g_simple_async_result_complete_in_idle (result);