-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove leaks from macOS clipboard getters
This additionally refactors `image()` to be simpler by taking advantage of the fact that we only want one image. Additionally, this codepath avoids the system-level caching of image data that can help reduce peak usage. We have applied an autorelease pool to the Obj-C code as well, as there appear to be a lot of autoreleased values used by AppKit.framework Finally, it applies a similar refactoring to `text()` for simplicity and removal of memory leaks due to incorrect object retaining assumptions. Co-authored-by: taojiacheng <[email protected]>
- Loading branch information
1 parent
f409d08
commit aef19b9
Showing
2 changed files
with
61 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters