[evolution-data-server] Fix for bug #578818



commit 8472356336a4d9a8799bae5df5249b6f89199db6
Author: Sergio Villar Senín <svillar igalia com>
Date:   Fri Apr 24 11:46:36 2009 +0200

    Fix for bug #578818
---
 camel/providers/local/ChangeLog               |    7 +++++++
 camel/providers/local/camel-maildir-summary.c |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/camel/providers/local/ChangeLog b/camel/providers/local/ChangeLog
index fa77356..98cb0ff 100644
--- a/camel/providers/local/ChangeLog
+++ b/camel/providers/local/ChangeLog
@@ -1,3 +1,10 @@
+2009-04-24  Sergio Villar Senin  <svillar igalia com>
+
+	** Fixes bug #573183
+	
+	* camel-maildir-summary.c (maildir_summary_check): only do
+	closedir() if directory is not NULL
+
 2009-03-01  Srinivasa Ragavan  <sragavan novell com>
 
 	* camel/providers/local/camel-local-folder.c: Fix for a deadlock,
diff --git a/camel/providers/local/camel-maildir-summary.c b/camel/providers/local/camel-maildir-summary.c
index 0a10f83..7928062 100644
--- a/camel/providers/local/camel-maildir-summary.c
+++ b/camel/providers/local/camel-maildir-summary.c
@@ -710,8 +710,8 @@ maildir_summary_check(CamelLocalSummary *cls, CamelFolderChangeInfo *changes, Ca
 			g_free(dest);
 		}
 		camel_operation_end(NULL);
+		closedir(dir);
 	}
-	closedir(dir);
 
 	g_free(new);
 	g_free(cur);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]