diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2008-10-21 20:31:41 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2008-10-21 20:31:41 +0000 |
commit | f488168b952b9d97a23df98f9d78d89823ce63a3 (patch) | |
tree | 84f5c0acce96de868425069bc4f70c84dd8569ba | |
parent | 82dee375a4f665fc117f98741ba906340ff1b779 (diff) | |
download | enchant-f488168b952b9d97a23df98f9d78d89823ce63a3.tar.gz |
Bugzilla Bug 11784 - crash when listing non match aff and dic dictionaries. From Seb Bacher
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@24950 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | src/myspell/myspell_checker.cpp | 2 |
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; } } |