telepathy-gabble: Don't crash when creating invisible privacy list fails.

Will Thompson wjt at kemper.freedesktop.org
Thu Dec 6 08:28:48 PST 2012


Module: telepathy-gabble
Branch: master
Commit: 0d908c122903a384882eff7de0e9ec6d6058d661
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=0d908c122903a384882eff7de0e9ec6d6058d661

Author: Will Thompson <will.thompson at collabora.co.uk>
Date:   Tue Nov 27 17:45:51 2012 +0000

Don't crash when creating invisible privacy list fails.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=57521

---

 src/conn-presence.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/conn-presence.c b/src/conn-presence.c
index 9dfd6b6..11c7d4f 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);
 



More information about the telepathy-commits mailing list