Skip to content

Commit

Permalink
refactor: forget some APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
wlh320 committed Sep 12, 2024
1 parent 1bd0a98 commit 9012512
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/rime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,9 @@ impl Rime {

pub fn destroy(&self) {
if RIME.get().is_some() {
unsafe {
librime::RimeCleanupAllSessions();
librime::RimeFinalize();
}
let api = Self::get_api();
rime_call!(api->cleanup_all_sessions);
rime_call!(api->finalize);
}
}

Expand Down

0 comments on commit 9012512

Please sign in to comment.