aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 3e204c2ff1..7397b1a38d 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-10 Jeffrey Stedfast <fejj@ximian.com>
+
+ * e-msg-composer.c (autosave_manager_query_load_orphans): Don't
+ forget to closedir() when we finish with dir.
+
2001-08-09 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (from_changed_cb): Set the smime/pgp
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 072ebc7f8f..544adb9f5c 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1148,7 +1148,7 @@ autosave_manager_query_load_orphans (AutosaveManager *am, EMsgComposer *composer
if (!dir) {
return;
}
-
+
while ((d = readdir (dir))) {
if ((!strncmp (d->d_name, AUTOSAVE_SEED, len - 6))
&& (strlen (d->d_name) == len)
@@ -1169,6 +1169,8 @@ autosave_manager_query_load_orphans (AutosaveManager *am, EMsgComposer *composer
}
}
+ closedir (dir);
+
if (match != NULL) {
dialog = gnome_question_dialog_parented (_("Evolution has found unsaved files from a previous session.\n"
"Would you like to attempt recovery?"),