From f53b1287772ff4d7589f4c4b3847c7a74ee293ef Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 15 Jul 2014 13:19:52 +0800 Subject: fixes memory leak --- src/PYLibPinyin.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit