[dovecot-cvs] dovecot/src/lib-dict dict-client.c, 1.7, 1.8 dict-sql.c, 1.7, 1.8

cras at dovecot.org cras at dovecot.org
Sun Feb 26 12:05:10 EET 2006


Update of /var/lib/cvs/dovecot/src/lib-dict
In directory talvi:/tmp/cvs-serv5842/lib-dict

Modified Files:
	dict-client.c dict-sql.c 
Log Message:
Added i_stream_destroy() and o_stream_destroy() and used them instead of
*_stream_unref() where possible. Fixes at least one problem with io_remove()
being called after socket was closed, which caused problems with epoll.



Index: dict-client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-dict/dict-client.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- dict-client.c	7 Feb 2006 08:01:15 -0000	1.7
+++ dict-client.c	26 Feb 2006 10:05:07 -0000	1.8
@@ -209,9 +209,9 @@
 	dict->handshaked = FALSE;
 
 	if (dict->input != NULL)
-		i_stream_unref(&dict->input);
+		i_stream_destroy(&dict->input);
 	if (dict->output != NULL)
-		o_stream_unref(&dict->output);
+		o_stream_destroy(&dict->output);
 
 	if (dict->fd != -1) {
 		if (close(dict->fd) < 0)

Index: dict-sql.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-dict/dict-sql.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- dict-sql.c	31 Jan 2006 06:05:22 -0000	1.7
+++ dict-sql.c	26 Feb 2006 10:05:07 -0000	1.8
@@ -72,7 +72,7 @@
 
 		t_pop();
 	}
-	i_stream_unref(&input);
+	i_stream_destroy(&input);
 	(void)close(fd);
 
 	if (dict->connect_string == NULL) {



More information about the dovecot-cvs mailing list