From 2bd1cd5f39f24b1e513e9b2c5730132e7f38d2f8 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 10 Aug 2001 05:18:59 +0000 Subject: Don't forget to closedir() when we finish with dir. 2001-08-10 Jeffrey Stedfast * e-msg-composer.c (autosave_manager_query_load_orphans): Don't forget to closedir() when we finish with dir. svn path=/trunk/; revision=11872 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + * e-msg-composer.c (autosave_manager_query_load_orphans): Don't + forget to closedir() when we finish with dir. + 2001-08-09 Jeffrey Stedfast * 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?"), -- cgit