summaryrefslogtreecommitdiffstats
path: root/src/PYPBopomofoEditor.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-10-08 10:03:26 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-22 12:23:13 +0800
commit1e18f80266808ba71138775d73244abff6f2fdd7 (patch)
tree82519f583070bbfaaf17feece8443f038b718e8a /src/PYPBopomofoEditor.cc
parent1e7522cfd85fbf7ed2ef512ae8f093039f7a699d (diff)
downloadibus-libpinyin-1e18f80266808ba71138775d73244abff6f2fdd7.tar.gz
ibus-libpinyin-1e18f80266808ba71138775d73244abff6f2fdd7.tar.xz
ibus-libpinyin-1e18f80266808ba71138775d73244abff6f2fdd7.zip
alloc/free pinyin instance
Diffstat (limited to 'src/PYPBopomofoEditor.cc')
-rw-r--r--src/PYPBopomofoEditor.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PYPBopomofoEditor.cc b/src/PYPBopomofoEditor.cc
index 1945183..f13fcc9 100644
--- a/src/PYPBopomofoEditor.cc
+++ b/src/PYPBopomofoEditor.cc
@@ -20,6 +20,7 @@
*/
#include "PYPBopomofoEditor.h"
#include "PYConfig.h"
+#include "PYLibPinyin.h"
#include "PYPinyinProperties.h"
#include "PYSimpTradConverter.h"
#include "PYHalfFullConverter.h"
@@ -48,10 +49,13 @@ LibPinyinBopomofoEditor::LibPinyinBopomofoEditor
: LibPinyinPhoneticEditor (props, config),
m_select_mode (FALSE)
{
+ m_instance = LibPinyinBackEnd::instance ().allocChewingInstance ();
}
LibPinyinBopomofoEditor::~LibPinyinBopomofoEditor (void)
{
+ LibPinyinBackEnd::instance ().freeChewingInstance (m_instance);
+ m_instance = NULL;
}
void