diff options
Diffstat (limited to 'base/i18n/string_search.cc')
-rw-r--r-- | base/i18n/string_search.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/i18n/string_search.cc b/base/i18n/string_search.cc index b2b29677..2983cba 100644 --- a/base/i18n/string_search.cc +++ b/base/i18n/string_search.cc @@ -27,7 +27,9 @@ bool CollationSensitiveStringSearch(const string16& find_this, ucol_setStrength(collator, strength); usearch_reset(search); - return usearch_first(search, &status) != USEARCH_DONE; + bool result = usearch_first(search, &status) != USEARCH_DONE; + usearch_close(search); + return result; } } // namespace @@ -42,4 +44,3 @@ bool StringSearchIgnoringCaseAndAccents(const string16& find_this, } // namespace i18n } // namespace base - |