Skip to content

Commit facf82c

Browse files
authored
Merge pull request #68 from fcitx/Issue#66_pretty_format
Free preedit after use
2 parents 6e0e655 + 28908f2 commit facf82c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ find_package(PkgConfig REQUIRED)
2121
find_package(Fcitx5Core 5.0.6 REQUIRED)
2222
find_package(Fcitx5Utils 5.0.6 REQUIRED)
2323

24-
# GITHUB_ACTION_BUILD_CSKK_VERSION=1.0.1
25-
pkg_check_modules(LIBCSKK REQUIRED IMPORTED_TARGET "cskk>=1.0")
24+
# GITHUB_ACTION_BUILD_CSKK_VERSION=1.1.0
25+
pkg_check_modules(LIBCSKK REQUIRED IMPORTED_TARGET "cskk>=1.1")
2626

2727
option(ENABLE_QT "Enable Qt for GUI configuration" On)
2828

src/cskk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void FcitxCskkContext::updateUI() {
355355
auto preeditDetail = skk_context_get_preedit_detail(context_, &stateStackLen);
356356
auto [mainPreedit, supplementPreedit] =
357357
FcitxCskkContext::formatPreedit(preeditDetail, stateStackLen);
358-
358+
skk_free_preedit_detail(preeditDetail, stateStackLen);
359359
// CandidateList
360360
int currentCursorPosition =
361361
skk_context_get_current_candidate_cursor_position(context_);

0 commit comments

Comments
 (0)