diff options
author | Peng Wu <alexepico@gmail.com> | 2012-07-06 14:47:58 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-07-06 14:47:58 +0800 |
commit | e8226de4e54798d65d7981830ff18e6367230be3 (patch) | |
tree | 0fb2ae5b2ffd29813d87d4303b1ce7ef3bbf8991 /src/pinyin.cpp | |
parent | 91ce93e4807833b1f61a0ef79ce2a11187fb72e8 (diff) | |
download | libpinyin-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.cpp | 1 |
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; |