From 19bb124b3e6b57eac2ad86bb3916824ab02c2d1f Mon Sep 17 00:00:00 2001 From: yanyiwu Date: Fri, 11 Sep 2015 17:30:23 +0800 Subject: [PATCH] [enhancement issue]: https://github.com/yanyiwu/nodejieba/issues/39 --- src/DictTrie.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/DictTrie.hpp b/src/DictTrie.hpp index 41cbe27..c887dc2 100644 --- a/src/DictTrie.hpp +++ b/src/DictTrie.hpp @@ -32,9 +32,7 @@ class DictTrie { init(dictPath, userDictPath); } ~DictTrie() { - if(trie_) { - delete trie_; - } + delete trie_; } void init(const string& dictPath, const string& userDictPath = "") {