aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-store.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index 7da066ecd6..dd73f084eb 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -655,7 +655,8 @@ connect_to_server (CamelService *service, int ssl_mode, int try_starttls, CamelE
if (clean_quit) {
/* try to disconnect cleanly */
response = camel_imap_command (store, NULL, ex, "LOGOUT");
- camel_imap_response_free_without_processing (store, response);
+ if (response)
+ camel_imap_response_free_without_processing (store, response);
}
camel_object_unref (CAMEL_OBJECT (store->istream));