This commit is contained in:
yanyiwu 2015-09-11 17:30:23 +08:00
parent 1babe57ebc
commit 19bb124b3e

View File

@ -32,9 +32,7 @@ class DictTrie {
init(dictPath, userDictPath); init(dictPath, userDictPath);
} }
~DictTrie() { ~DictTrie() {
if(trie_) { delete trie_;
delete trie_;
}
} }
void init(const string& dictPath, const string& userDictPath = "") { void init(const string& dictPath, const string& userDictPath = "") {