diff options
author | Peng Wu <alexepico@gmail.com> | 2013-06-18 11:08:48 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-06-18 11:09:37 +0800 |
commit | 1ab1848e50da608ac768751f1d253a1c74ba4667 (patch) | |
tree | b18a7cc44b543698ae793ac086897239eee7f707 /src/lookup/phrase_lookup.cpp | |
parent | 17221a12d28de70bf2d0071f2359a4b13668dfc5 (diff) | |
download | libpinyin-1ab1848e50da608ac768751f1d253a1c74ba4667.tar.gz libpinyin-1ab1848e50da608ac768751f1d253a1c74ba4667.tar.xz libpinyin-1ab1848e50da608ac768751f1d253a1c74ba4667.zip |
fixes lookups
Diffstat (limited to 'src/lookup/phrase_lookup.cpp')
-rw-r--r-- | src/lookup/phrase_lookup.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lookup/phrase_lookup.cpp b/src/lookup/phrase_lookup.cpp index 114ecb4..f7da0b7 100644 --- a/src/lookup/phrase_lookup.cpp +++ b/src/lookup/phrase_lookup.cpp @@ -106,6 +106,10 @@ PhraseLookup::PhraseLookup(const gfloat lambda, m_steps_index = g_ptr_array_new(); m_steps_content = g_ptr_array_new(); + + /* the member variables below are saved in get_best_match call. */ + m_sentence = NULL; + m_sentence_length = 0; } PhraseLookup::~PhraseLookup(){ |