Mercurial > dovecot > original-hg > dovecot-2.2
changeset 6745:55853fd9d2cf HEAD
Mail closing should just unreference streams, not close them.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 08 Nov 2007 20:52:29 +0200 |
parents | e349cb1c4daf |
children | 2259ec6c009a |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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)