]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Make sure we unlock index before unreferencing it, since it's not actually
authorTimo Sirainen <tss@iki.fi>
Sun, 15 Jun 2003 02:20:12 +0000 (05:20 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 15 Jun 2003 02:20:12 +0000 (05:20 +0300)
closed at that time

--HG--
branch : HEAD

src/lib-storage/index/index-storage.c

index 21fa976a57db2677b46865ee48d1a9a875a60785..32dbf3ac8f88005a30c7d2bb1bc80e5d3b0af888 100644 (file)
@@ -335,6 +335,9 @@ int index_storage_close(struct mailbox *box)
 {
        struct index_mailbox *ibox = (struct index_mailbox *) box;
 
+       /* make sure we're unlocked */
+       (void)ibox->index->set_lock(ibox->index, MAIL_LOCK_UNLOCK);
+
        index_mailbox_check_remove_all(ibox);
        if (ibox->index != NULL)
                index_storage_unref(ibox->index);