From bc1f11e11c308635197a05b9af4235d9e4640f82 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 22 Nov 2011 17:51:01 +0800 Subject: fixes memory leak --- src/storage/pinyin_parser2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/storage') diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index d92ceaa..a59bbb5 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -462,6 +462,7 @@ bool DoublePinyinParser2::parse_one_key (guint32 options, ChewingKey & key, g_free(pinyin); return true; } + g_free(pinyin); /* second yunmu */ yun = m_yunmu_table[charid].m_yunmus[1]; @@ -472,8 +473,8 @@ bool DoublePinyinParser2::parse_one_key (guint32 options, ChewingKey & key, g_free(pinyin); return true; } - g_free(pinyin); + } #undef IS_KEY -- cgit