Skip to content

Commit

Permalink
Merge pull request #68 from fcitx/Issue#66_pretty_format
Browse files Browse the repository at this point in the history
Free preedit after use
  • Loading branch information
naokiri authored Nov 4, 2022
2 parents 6e0e655 + 28908f2 commit facf82c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/cskk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit facf82c

Please sign in to comment.