changeset 4203:4141aae720fe HEAD

Fixed memory leaks
author Timo Sirainen <tss@iki.fi>
date Thu, 20 Apr 2006 17:08:28 +0300
parents 581b5a12c7b7
children 9c8a79d36bb0
files src/lib-storage/index/dbox/dbox-storage.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/dbox/dbox-storage.c	Tue Apr 18 21:17:47 2006 +0300
+++ b/src/lib-storage/index/dbox/dbox-storage.c	Thu Apr 20 17:08:28 2006 +0300
@@ -9,6 +9,7 @@
 #include "index-mail.h"
 #include "dbox-uidlist.h"
 #include "dbox-sync.h"
+#include "dbox-file.h"
 #include "dbox-storage.h"
 
 #include <stdio.h>
@@ -615,6 +616,11 @@
 
 static int dbox_storage_close(struct mailbox *box)
 {
+	struct dbox_mailbox *mbox = (struct dbox_mailbox *)box;
+
+	dbox_uidlist_deinit(mbox->uidlist);
+	if (mbox->file != NULL)
+		dbox_file_close(mbox->file);
         index_storage_mailbox_free(box);
 	return 0;
 }