diff options
author | Peng Wu <alexepico@gmail.com> | 2020-02-26 16:18:53 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2020-02-26 18:46:05 +0800 |
commit | 915f2ff1d5f58b43ef2167a94e3060c342f7abe7 (patch) | |
tree | 4b77f88c045c0de4833cd78cfb538aa2072777a7 /src/PYPPinyinEditor.cc | |
parent | 7be9b52ba5ef951d48de960d36d0c015d7d50cd8 (diff) | |
download | ibus-libpinyin-915f2ff1d5f58b43ef2167a94e3060c342f7abe7.tar.gz ibus-libpinyin-915f2ff1d5f58b43ef2167a94e3060c342f7abe7.tar.xz ibus-libpinyin-915f2ff1d5f58b43ef2167a94e3060c342f7abe7.zip |
fixes memory leak in pinyin_get_sentence call
Diffstat (limited to 'src/PYPPinyinEditor.cc')
-rw-r--r-- | src/PYPPinyinEditor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PYPPinyinEditor.cc b/src/PYPPinyinEditor.cc index fc271e8..fc9ad71 100644 --- a/src/PYPPinyinEditor.cc +++ b/src/PYPPinyinEditor.cc @@ -266,6 +266,8 @@ PinyinEditor::updatePreeditText () guint cursor = getPinyinCursor (); pinyin_get_character_offset(m_instance, sentence, cursor, &offset); Editor::updatePreeditText (preedit_text, offset, TRUE); + + g_free (sentence); } #if 0 |