diff options
Diffstat (limited to 'camel/providers/imap')
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index a924c4dab7..26cfeb765f 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -362,7 +362,9 @@ try_auth (CamelImapStore *store, const char *mech, CamelException *ex) g_free (resp); goto lose; } - + + camel_object_unref (CAMEL_OBJECT (sasl)); + CAMEL_IMAP_STORE_UNLOCK (store, command_lock); return TRUE; @@ -377,7 +379,11 @@ try_auth (CamelImapStore *store, const char *mech, CamelException *ex) camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_CANT_AUTHENTICATE, _("Bad authentication response from server.")); } + + camel_object_unref (CAMEL_OBJECT (sasl)); + CAMEL_IMAP_STORE_UNLOCK (store, command_lock); + return FALSE; } |