Skip to content

Commit

Permalink
feat(mac): add call to km_core_keyboard_key_list_dispose
Browse files Browse the repository at this point in the history
memory leak of key list without disposing
  • Loading branch information
sgschantz committed Oct 7, 2024
1 parent 6abd59b commit 5fb8d11
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ -(NSArray*)getKeyArray {
}
}

km_core_keyboard_key_list_dispose(keyList);

os_log_debug([KMELogs coreLog], "getKeyList returning %lu keys", (unsigned long)keyArray.count);

return keyArray;
Expand All @@ -103,7 +105,7 @@ -(void) dealloc{
if (self.coreKeyboard) {
km_core_keyboard_dispose(self.coreKeyboard);
}
os_log_debug([KMELogs coreLog], "dealloc called.");
os_log_debug([KMELogs coreLog], "CoreWrapper dealloc called");
}

-(void)loadKeyboardUsingCore:(NSString*) path {
Expand Down

0 comments on commit 5fb8d11

Please sign in to comment.