mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
macos: fix memory leak
probably should use an AutoreleasePool as well
This commit is contained in:
parent
3922b45bd9
commit
708a40d0da
1 changed files with 3 additions and 1 deletions
|
|
@ -453,8 +453,10 @@ fn create_event_tap<'a>(
|
|||
// Returning Drop should stop the event from being processed
|
||||
// but core fundation still returns the event
|
||||
cg_ev.set_type(CGEventType::Null);
|
||||
CallbackResult::Drop
|
||||
} else {
|
||||
CallbackResult::Keep
|
||||
}
|
||||
CallbackResult::Replace(cg_ev.to_owned())
|
||||
};
|
||||
|
||||
let tap = CGEventTap::new(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue