[dovecot-cvs] dovecot/src/plugins/trash trash-plugin.c,1.3,1.4

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


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

Modified Files:
	trash-plugin.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: trash-plugin.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/trash/trash-plugin.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- trash-plugin.c	14 Jan 2006 18:48:14 -0000	1.3
+++ trash-plugin.c	26 Feb 2006 10:05:28 -0000	1.4
@@ -260,7 +260,7 @@
 		trash->name = p_strdup(config_pool, name+1);
 		trash->priority = atoi(t_strdup_until(line, name));
 	}
-	i_stream_unref(&input);
+	i_stream_destroy(&input);
 	(void)close(fd);
 
 	qsort(array_get_modifyable(&trash_boxes, NULL),



More information about the dovecot-cvs mailing list