summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-11 17:30:07 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-11 17:30:07 +0800
commite1046d79dc7b32c31d3dcc59216a3b0e6c3c7474 (patch)
treef49d4b5a81e0b4cb5ffe378504f3d8581c169a7d
parente3a847651431bb9f1edd01a2606ff37d2286c055 (diff)
downloadlibpinyin-e1046d79dc7b32c31d3dcc59216a3b0e6c3c7474.zip
libpinyin-e1046d79dc7b32c31d3dcc59216a3b0e6c3c7474.tar.gz
libpinyin-e1046d79dc7b32c31d3dcc59216a3b0e6c3c7474.tar.xz
fixes memory leak in test pinyin
-rw-r--r--tests/test_pinyin.cpp1
1 files changed, 1 insertions, 0 deletions
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);