diff options
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; |