From e1046d79dc7b32c31d3dcc59216a3b0e6c3c7474 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 11 Oct 2012 17:30:07 +0800 Subject: [PATCH] fixes memory leak in test pinyin --- tests/test_pinyin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp index 82f0c6c..6978d18 100644 --- a/tests/test_pinyin.cpp +++ b/tests/test_pinyin.cpp @@ -87,6 +87,7 @@ int main(int argc, char * argv[]){ pinyin_save(context); } + pinyin_free_candidates(instance, candidates); g_array_free(candidates, TRUE); pinyin_free_instance(instance); pinyin_fini(context); -- 2.7.4