From 1f40b4ba9a6da27fa3a8c41ce20e68a3101a4696 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 2 Mar 2001 19:19:31 +0000 Subject: Don't forget to unref the SASL object. 2001-03-02 Jeffrey Stedfast * providers/imap/camel-imap-store.c (try_auth): Don't forget to unref the SASL object. * providers/smtp/camel-smtp-transport.c (query_auth_types): Implemented. (smtp_auth): Implemented. (smtp_helo): Don't bother parsing the authtypes if we already have them. (smtp_connect): call smtp_auth() here if we found any authtypes. (smtp_disconnect): Updated as I now use a hash table for the supported authtypes rather than a linked list. (esmtp_get_authtypes): modify to use a hash table instead of a linked list and also use isspace() rather than == ' '. svn path=/trunk/; revision=8525 --- camel/providers/imap/camel-imap-store.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'camel/providers/imap/camel-imap-store.c') 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; } -- cgit v1.2.3