[evolution-data-server/gnome-3-6] imapx_connect_to_server: Avoid a runtime warning.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-6] imapx_connect_to_server: Avoid a runtime warning.
- Date: Sun, 30 Sep 2012 11:57:11 +0000 (UTC)
commit a91eef8360b5a018c5b57034f526508c4bf49e1e
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Sep 30 07:50:26 2012 -0400
imapx_connect_to_server: Avoid a runtime warning.
Check that the IMAPX stream is non-NULL before unreferencing it during
failure cleanup.
(cherry picked from commit 19da4b91667003095871d771667fbcee0faa9959)
camel/camel-imapx-server.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-imapx-server.c b/camel/camel-imapx-server.c
index bbffd3f..e595243 100644
--- a/camel/camel-imapx-server.c
+++ b/camel/camel-imapx-server.c
@@ -3523,8 +3523,10 @@ exit:
} else {
g_mutex_lock (&is->priv->stream_lock);
- g_object_unref (is->priv->stream);
- is->priv->stream = NULL;
+ if (is->priv->stream != NULL) {
+ g_object_unref (is->priv->stream);
+ is->priv->stream = NULL;
+ }
if (is->cinfo != NULL) {
imapx_free_capability (is->cinfo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]