Skip to content

fix: retain managed display spaces#27

Closed
gregorias wants to merge 1 commit intoJaysce:mainfrom
gregorias:main
Closed

fix: retain managed display spaces#27
gregorias wants to merge 1 commit intoJaysce:mainfrom
gregorias:main

Conversation

@gregorias
Copy link

This fixes a memory leak. CGSCopyManagedDisplaySpaces returns an unmanaged object reference, so we need to retain it to ensure it's properly cleaned up.

Before:

Screenshot 2023-05-31 at 18 40 09

After:

Screenshot 2023-05-31 at 18 53 45

This fixes a memory leak. CGSCopyManagedDisplaySpaces returns an
unmanaged object reference, so we need to retain it to ensure it's
properly cleaned up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments