dovecot: Mail closing should just unreference streams, not close...

dovecot at dovecot.org dovecot at dovecot.org
Thu Nov 8 20:52:34 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/55853fd9d2cf
changeset: 6745:55853fd9d2cf
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Nov 08 20:52:29 2007 +0200
description:
Mail closing should just unreference streams, not close them.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/index/index-mail.c |    4 ++--

diffs (15 lines):

diff -r e349cb1c4daf -r 55853fd9d2cf src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c	Thu Nov 08 19:56:51 2007 +0200
+++ b/src/lib-storage/index/index-mail.c	Thu Nov 08 20:52:29 2007 +0200
@@ -903,9 +903,9 @@ void index_mail_close(struct mail *_mail
 	if (mail->data.parser_ctx != NULL)
 		(void)message_parser_deinit(&mail->data.parser_ctx);
 	if (mail->data.stream != NULL)
-		i_stream_destroy(&mail->data.stream);
+		i_stream_unref(&mail->data.stream);
 	if (mail->data.filter_stream != NULL)
-		i_stream_destroy(&mail->data.filter_stream);
+		i_stream_unref(&mail->data.filter_stream);
 }
 
 static void index_mail_reset(struct index_mail *mail)


More information about the dovecot-cvs mailing list