summaryrefslogtreecommitdiffstats
path: root/src/lookup/phonetic_lookup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lookup/phonetic_lookup.h')
-rw-r--r--src/lookup/phonetic_lookup.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h
index e3d6c36..194ad17 100644
--- a/src/lookup/phonetic_lookup.h
+++ b/src/lookup/phonetic_lookup.h
@@ -422,11 +422,13 @@ protected:
FacadePhraseIndex * m_phrase_index;
public:
- ForwardPhoneticConstraints() {
+ ForwardPhoneticConstraints(FacadePhraseIndex * phrase_index) {
+ m_phrase_index = phrase_index;
m_constraints = g_array_new(TRUE, TRUE, sizeof(trellis_constraint_t));
}
~ForwardPhoneticConstraints() {
+ m_phrase_index = NULL;
g_array_free(m_constraints, TRUE);
m_constraints = NULL;
}