summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladv@rosedu.org>2012-03-19 18:36:07 (GMT)
committervlad <vlad@tyrion.(none)>2012-10-13 13:55:45 (GMT)
commit5f745ebd56014a68695ac4b6fe7fb5dc96e34384 (patch)
tree284e1c2f9d41844dd17046d859d2c68225cfa1d6 /SwifTools/HunspellChecker.cpp
parentb3948434495a18df5c4537a2a6e0feecc0805788 (diff)
downloadswift-contrib-5f745ebd56014a68695ac4b6fe7fb5dc96e34384.zip
swift-contrib-5f745ebd56014a68695ac4b6fe7fb5dc96e34384.tar.bz2
Addressed Kev's code review
Diffstat (limited to 'SwifTools/HunspellChecker.cpp')
-rw-r--r--SwifTools/HunspellChecker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/SwifTools/HunspellChecker.cpp b/SwifTools/HunspellChecker.cpp
index fa5917a..f37b3e5 100644
--- a/SwifTools/HunspellChecker.cpp
+++ b/SwifTools/HunspellChecker.cpp
@@ -35,6 +35,7 @@ void HunspellChecker::getSuggestions(const std::string& word, std::vector<std::s
list.push_back(suggestList[i]);
free(suggestList[i]);
}
+ free(suggestList);
}
void HunspellChecker::checkFragment(const std::string& fragment, PositionPairList& misspelledPositions) {