diff options
author | Peng Wu <alexepico@gmail.com> | 2011-12-27 18:59:07 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-27 18:59:07 +0800 |
commit | e944e7d63af8152b20bffdd4ddeb3bd7fa786e31 (patch) | |
tree | e79c47513fd1e70bc2726eae4acbf5c8f6452e1a /src/PYLibPinyin.cc | |
parent | 27b889202f81006fb16566b4f460fd353a5ff689 (diff) | |
download | ibus-libpinyin-e944e7d63af8152b20bffdd4ddeb3bd7fa786e31.tar.gz ibus-libpinyin-e944e7d63af8152b20bffdd4ddeb3bd7fa786e31.tar.xz ibus-libpinyin-e944e7d63af8152b20bffdd4ddeb3bd7fa786e31.zip |
fixes code style
Diffstat (limited to 'src/PYLibPinyin.cc')
-rw-r--r-- | src/PYLibPinyin.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc index b0e09ea..f8858e7 100644 --- a/src/PYLibPinyin.cc +++ b/src/PYLibPinyin.cc @@ -64,9 +64,10 @@ LibPinyinBackEnd::allocPinyinInstance () g_free(userdir); userdir = NULL; } m_pinyin_context = pinyin_init ("/usr/share/libpinyin/data", userdir); - setPinyinOptions (&LibPinyinPinyinConfig::instance ()); g_free(userdir); } + + setPinyinOptions (&LibPinyinPinyinConfig::instance ()); return pinyin_alloc_instance (m_pinyin_context); } @@ -87,9 +88,10 @@ LibPinyinBackEnd::allocChewingInstance () g_free(userdir); userdir = NULL; } m_chewing_context = pinyin_init ("/usr/share/libpinyin/data", NULL); - setChewingOptions (&LibPinyinBopomofoConfig::instance ()); g_free(userdir); } + + setChewingOptions (&LibPinyinBopomofoConfig::instance ()); return pinyin_alloc_instance (m_chewing_context); } |