changeset 4784:86b8b9e45c30 HEAD

Memory/fd leak fix
author Timo Sirainen <tss@iki.fi>
date Sun, 12 Nov 2006 13:13:17 +0200
parents db7983ff23b8
children a18fa2b4bf06
files src/lib-index/mail-transaction-log-view.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-view.c	Wed Nov 08 22:51:32 2006 +0200
+++ b/src/lib-index/mail-transaction-log-view.c	Sun Nov 12 13:13:17 2006 +0200
@@ -188,12 +188,12 @@
 		/* unref old files */
 		for (file = view->tail; file != first; file = file->next)
 			file->refcount--;
-		view->tail = first;
 	} else {
 		/* going backwards, reference them */
 		for (file = first; file != view->tail; file = file->next)
 			file->refcount++;
 	}
+	view->tail = first;
 
 	/* reference all new files */
 	for (file = view->head->next; file != NULL; file = file->next)