projects
/
platform
/
upstream
/
ibus-libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f74c3c
)
fixes reset
author
Peng Wu
<alexepico@gmail.com>
Wed, 4 Jul 2012 02:35:38 +0000
(10:35 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Wed, 4 Jul 2012 02:36:33 +0000
(10:36 +0800)
src/PYPPhoneticEditor.cc
patch
|
blob
|
history
diff --git
a/src/PYPPhoneticEditor.cc
b/src/PYPPhoneticEditor.cc
index
a258a5d
..
87242c6
100644
(file)
--- a/
src/PYPPhoneticEditor.cc
+++ b/
src/PYPPhoneticEditor.cc
@@
-36,8
+36,8
@@
LibPinyinPhoneticEditor::LibPinyinPhoneticEditor (PinyinProperties &props,
}
LibPinyinPhoneticEditor::~LibPinyinPhoneticEditor (){
- pinyin_free_candidates(m_instance, m_candidates);
- g_array_free(m_candidates, TRUE);
+ pinyin_free_candidates
(m_instance, m_candidates);
+ g_array_free
(m_candidates, TRUE);
m_candidates = NULL;
}
@@
-293,6
+293,8
@@
LibPinyinPhoneticEditor::reset (void)
{
m_pinyin_len = 0;
m_lookup_table.clear ();
+
+ pinyin_free_candidates (m_instance, m_candidates);
pinyin_reset (m_instance);
Editor::reset ();