diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-10 13:18:59 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-10 13:18:59 +0800 |
commit | 2bd1cd5f39f24b1e513e9b2c5730132e7f38d2f8 (patch) | |
tree | 5d049ef2029890a950fd8c58d90693f6213e3f0f | |
parent | d69a71921a70ccd985e34a4f58bb0f0a15c4320f (diff) | |
download | gsoc2013-evolution-2bd1cd5f39f24b1e513e9b2c5730132e7f38d2f8.tar.gz gsoc2013-evolution-2bd1cd5f39f24b1e513e9b2c5730132e7f38d2f8.tar.zst gsoc2013-evolution-2bd1cd5f39f24b1e513e9b2c5730132e7f38d2f8.zip |
Don't forget to closedir() when we finish with dir.
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.
svn path=/trunk/; revision=11872
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 4 |
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?"), |