# HG changeset patch # User Timo Sirainen # Date 1198296240 -7200 # Node ID 0f4e8b9957601eb6d0a0fa87b402a910a0d84a4f # Parent e527ac1a7b4ba4cad2b4bd4180c66cc3655a9df8 Free filter_stream before mail stream so we don't crash. diff -r e527ac1a7b4b -r 0f4e8b995760 src/lib-storage/index/index-mail.c --- a/src/lib-storage/index/index-mail.c Sat Dec 22 05:58:58 2007 +0200 +++ b/src/lib-storage/index/index-mail.c Sat Dec 22 06:04:00 2007 +0200 @@ -1034,13 +1034,13 @@ if (mail->data.parser_ctx != NULL) (void)message_parser_deinit(&mail->data.parser_ctx); + if (mail->data.filter_stream != NULL) + i_stream_unref(&mail->data.filter_stream); if (mail->data.stream != NULL) { mail->data.destroying_stream = TRUE; i_stream_unref(&mail->data.stream); i_assert(!mail->data.destroying_stream); } - if (mail->data.filter_stream != NULL) - i_stream_unref(&mail->data.filter_stream); } static void index_mail_reset(struct index_mail *mail)