summaryrefslogtreecommitdiff
path: root/src/stringfilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stringfilter.cpp')
-rw-r--r--src/stringfilter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stringfilter.cpp b/src/stringfilter.cpp
index 6045c19ef..b12abff7f 100644
--- a/src/stringfilter.cpp
+++ b/src/stringfilter.cpp
@@ -28,7 +28,8 @@ static const WChar STATE_QUOTE2 = '"';
*/
void StringFilter::SetFilterTerm(const char *str)
{
- this->word_index.Reset();
+ this->word_index.clear();
+ this->word_index.shrink_to_fit();
this->word_matches = 0;
free(this->filter_buffer);