From 28908f224830b003d4ee93a5aa618e9617891054 Mon Sep 17 00:00:00 2001 From: Naoaki Iwakiri Date: Fri, 4 Nov 2022 14:31:28 +0900 Subject: [PATCH] Free preedit after use --- CMakeLists.txt | 4 ++-- src/cskk.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 17cc8e1..666fee5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,8 +21,8 @@ find_package(PkgConfig REQUIRED) find_package(Fcitx5Core 5.0.6 REQUIRED) find_package(Fcitx5Utils 5.0.6 REQUIRED) -# GITHUB_ACTION_BUILD_CSKK_VERSION=1.0.1 -pkg_check_modules(LIBCSKK REQUIRED IMPORTED_TARGET "cskk>=1.0") +# GITHUB_ACTION_BUILD_CSKK_VERSION=1.1.0 +pkg_check_modules(LIBCSKK REQUIRED IMPORTED_TARGET "cskk>=1.1") option(ENABLE_QT "Enable Qt for GUI configuration" On) diff --git a/src/cskk.cpp b/src/cskk.cpp index 331975f..63e7135 100644 --- a/src/cskk.cpp +++ b/src/cskk.cpp @@ -355,7 +355,7 @@ void FcitxCskkContext::updateUI() { auto preeditDetail = skk_context_get_preedit_detail(context_, &stateStackLen); auto [mainPreedit, supplementPreedit] = FcitxCskkContext::formatPreedit(preeditDetail, stateStackLen); - + skk_free_preedit_detail(preeditDetail, stateStackLen); // CandidateList int currentCursorPosition = skk_context_get_current_candidate_cursor_position(context_);