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

View File

@ -32,10 +32,8 @@ 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 = "") {
if(trie_ != NULL) { if(trie_ != NULL) {