diff options
author | Senko Rasic <senko.rasic@collabora.co.uk> | 2006-10-14 21:10:45 +0000 |
---|---|---|
committer | Senko Rasic <senko.rasic@collabora.co.uk> | 2006-10-14 21:10:45 +0000 |
commit | 4681bb25f00b1e50760d2e17e6869ff961d466db (patch) | |
tree | 30e77c6c938e4e94f10a0cba8d921c9257218f8b | |
parent | 869b89404e9e12b883ca7ed0b79370793cb99a6e (diff) |
GabbleConnection: fixed room_jid_disco_cb to return proper Telepathy error, and not doubly free error and batch context
-rw-r--r-- | src/gabble-connection.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gabble-connection.c b/src/gabble-connection.c index 0ee8cdda2..adf88455c 100644 --- a/src/gabble-connection.c +++ b/src/gabble-connection.c @@ -4229,8 +4229,14 @@ room_jid_disco_cb (GabbleDisco *disco, if (error != NULL) { DEBUG ("disco reply error %s", error->message); - room_verify_batch_raise_error(batch, error); - goto OUT; + + /* disco will free the old error, _raise_error will free the new one */ + error = g_error_new (TELEPATHY_ERRORS, NotAvailable, + "can't retrieve room info: %s", error->message); + + room_verify_batch_raise_error (batch, error); + + return; } for (lm_node = query_result->children; lm_node; lm_node = lm_node->next) |