summaryrefslogtreecommitdiffstats
path: root/src/pinyin.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-07-06 14:47:58 +0800
committerPeng Wu <alexepico@gmail.com>2012-07-06 14:47:58 +0800
commite8226de4e54798d65d7981830ff18e6367230be3 (patch)
tree0fb2ae5b2ffd29813d87d4303b1ce7ef3bbf8991 /src/pinyin.cpp
parent91ce93e4807833b1f61a0ef79ce2a11187fb72e8 (diff)
downloadlibpinyin-e8226de4e54798d65d7981830ff18e6367230be3.tar.gz
libpinyin-e8226de4e54798d65d7981830ff18e6367230be3.tar.xz
libpinyin-e8226de4e54798d65d7981830ff18e6367230be3.zip
fixes _prepend_sentence_candidate
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r--src/pinyin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 12a4b8d..64d69db 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -908,6 +908,7 @@ static bool _prepend_sentence_candidate(pinyin_instance_t * instance,
pinyin_get_sentence(instance, &sentence);
if (NULL == sentence)
return false;
+ g_free(sentence);
/* prepend best match candidate to candidates. */
lookup_candidate_t candidate;