summaryrefslogtreecommitdiffstats
path: root/src/lookup/phonetic_lookup.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-02-07 15:02:55 +0800
committerPeng Wu <alexepico@gmail.com>2017-02-07 15:02:55 +0800
commit8d404a360f3f5e2515cb8b8c7b3f2ea3b4e65580 (patch)
treea7dccd7e043db7db1b3ee0fd3c20b6e7551935c3 /src/lookup/phonetic_lookup.h
parent55d7fed35b663fa4acadc42e24a2175c228f7c37 (diff)
downloadlibpinyin-8d404a360f3f5e2515cb8b8c7b3f2ea3b4e65580.tar.gz
libpinyin-8d404a360f3f5e2515cb8b8c7b3f2ea3b4e65580.tar.xz
libpinyin-8d404a360f3f5e2515cb8b8c7b3f2ea3b4e65580.zip
fixes phonetic_lookup_heap.h
Diffstat (limited to 'src/lookup/phonetic_lookup.h')
-rw-r--r--src/lookup/phonetic_lookup.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h
index 6c349fb..6b88804 100644
--- a/src/lookup/phonetic_lookup.h
+++ b/src/lookup/phonetic_lookup.h
@@ -107,7 +107,7 @@ struct matrix_value_t {
};
#endif
-#if 1
+#if 0
/* for debug purpose */
#include "phonetic_lookup_linear.h"
#else
@@ -191,7 +191,9 @@ public:
~ForwardPhoneticTrellis() {
clear();
g_ptr_array_free(m_steps_index, TRUE);
+ m_steps_index = NULL;
g_ptr_array_free(m_steps_content, TRUE);
+ m_steps_content = NULL;
}
public:
@@ -460,6 +462,7 @@ public:
~NBestMatchResults() {
clear();
g_ptr_array_free(m_results, TRUE);
+ m_results = NULL;
}
public: