diff options
author | Peng Wu <alexepico@gmail.com> | 2014-07-15 13:19:52 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-07-15 13:19:52 +0800 |
commit | f53b1287772ff4d7589f4c4b3847c7a74ee293ef (patch) | |
tree | 620a48b4b5f05bd44143ae7cd3c962c4f8d0d24a /src | |
parent | d44a0cbedb562c2e1926c765cdd4735be68db9b6 (diff) | |
download | ibus-libpinyin-f53b1287772ff4d7589f4c4b3847c7a74ee293ef.tar.gz ibus-libpinyin-f53b1287772ff4d7589f4c4b3847c7a74ee293ef.tar.xz ibus-libpinyin-f53b1287772ff4d7589f4c4b3847c7a74ee293ef.zip |
fixes memory leak
Diffstat (limited to 'src')
-rw-r--r-- | src/PYLibPinyin.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc index 23970a5..7f13897 100644 --- a/src/PYLibPinyin.cc +++ b/src/PYLibPinyin.cc @@ -242,6 +242,8 @@ LibPinyinBackEnd::importPinyinDictionary (const char * filename) continue; pinyin_iterator_add_phrase (iter, phrase, pinyin, count); + + g_strfreev (items); } pinyin_end_add_phrases (iter); |