changeset 4671:830cee5ef3c0 HEAD

Reference counting fix
author Timo Sirainen <tss@iki.fi>
date Sat, 14 Oct 2006 02:52:02 +0300
parents 5372b92be174
children b7ff8c64c436
files src/imap-login/client.c src/pop3-login/client.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap-login/client.c	Sat Oct 14 02:50:09 2006 +0300
+++ b/src/imap-login/client.c	Sat Oct 14 02:52:02 2006 +0300
@@ -509,6 +509,7 @@
 	client_unref(client);
 
 	main_listen_start();
+	main_unref();
 }
 
 void client_destroy_internal_failure(struct imap_client *client)
@@ -542,7 +543,6 @@
 	i_free(client->common.auth_mech_name);
 	i_free(client);
 
-	main_unref();
 	return FALSE;
 }
 
--- a/src/pop3-login/client.c	Sat Oct 14 02:50:09 2006 +0300
+++ b/src/pop3-login/client.c	Sat Oct 14 02:52:02 2006 +0300
@@ -398,6 +398,7 @@
 	client_unref(client);
 
 	main_listen_start();
+	main_unref();
 }
 
 void client_destroy_internal_failure(struct pop3_client *client)
@@ -431,7 +432,6 @@
 	i_free(client->common.auth_mech_name);
 	i_free(client);
 
-	main_unref();
 	return FALSE;
 }