summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/myspell/myspell_checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/myspell/myspell_checker.cpp b/src/myspell/myspell_checker.cpp
index b265ffc..d6313b8 100644
--- a/src/myspell/myspell_checker.cpp
+++ b/src/myspell/myspell_checker.cpp
@@ -343,8 +343,8 @@ myspell_request_dictionary (const char * tag)
strstr (dir_entry, ".dic") != NULL) {
char *dict = g_build_filename (dirs[i].c_str(),
dir_entry, NULL);
- g_dir_close (dir);
if(s_hasCorrespondingAffFile(dict)){
+ g_dir_close (dir);
return dict;
}
}