Mercurial > dovecot > core-2.2
changeset 13251:390f69281fb8
lib-storage: Fixed assert-crash caused by previous stats change.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 16 Aug 2011 18:27:40 +0300 |
parents | b7a6573dacca |
children | 32315c24992c |
files | src/lib-storage/index/index-search.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-search.c Tue Aug 16 17:02:08 2011 +0300 +++ b/src/lib-storage/index/index-search.c Tue Aug 16 18:27:40 2011 +0300 @@ -1184,8 +1184,12 @@ array_free(&ctx->mail_ctx.results); array_free(&ctx->mail_ctx.module_contexts); - array_foreach_modifiable(&ctx->mails, mailp) + array_foreach_modifiable(&ctx->mails, mailp) { + struct index_mail *imail = (struct index_mail *)*mailp; + + imail->search_mail = FALSE; mail_free(mailp); + } array_free(&ctx->mails); i_free(ctx); return ret;