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/PYPBopomofoEditor.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/PYPBopomofoEditor.cc')
-rw-r--r-- | src/PYPBopomofoEditor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PYPBopomofoEditor.cc b/src/PYPBopomofoEditor.cc index dafc3cc..f7a7223 100644 --- a/src/PYPBopomofoEditor.cc +++ b/src/PYPBopomofoEditor.cc @@ -394,6 +394,8 @@ BopomofoEditor::updatePreeditText () guint cursor = getPinyinCursor (); pinyin_get_character_offset(m_instance, sentence, cursor, &offset); Editor::updatePreeditText (preedit_text, offset, TRUE); + + g_free (sentence); } void |