]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: Make sure mail cache is freed when mailbox is closed.
authorTimo Sirainen <tss@iki.fi>
Sat, 1 Oct 2011 14:41:12 +0000 (17:41 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 1 Oct 2011 14:41:12 +0000 (17:41 +0300)
src/lib-storage/index/imapc/imapc-storage.c

index 66b4dec322f5a77bc441d6f2269585b19af12a00..45886433635ce0f48209d2521884f8d2f19c3778 100644 (file)
@@ -463,6 +463,7 @@ static void imapc_mailbox_close(struct mailbox *box)
                timeout_remove(&mbox->to_idle_delay);
        if (mbox->to_idle_check != NULL)
                timeout_remove(&mbox->to_idle_check);
+       imapc_mail_cache_free(&mbox->prev_mail_cache);
        return index_storage_mailbox_close(box);
 }