diff --git a/src/rime/dict/entry_collector.cc b/src/rime/dict/entry_collector.cc index cdb7625c5e..7381331323 100644 --- a/src/rime/dict/entry_collector.cc +++ b/src/rime/dict/entry_collector.cc @@ -147,6 +147,9 @@ void EntryCollector::Finish() { } } } + decltype(collection)().swap(collection); + decltype(words)().swap(words); + decltype(total_weight)().swap(total_weight); LOG(INFO) << "Pass 3: total " << num_entries << " entries collected."; }