Skip to content

Release color space after use in iOS wrapper #790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2024

Conversation

markusfisch
Copy link
Contributor

CGColorSpaceCreateWithName returns a CGColorSpaceRef, which needs to be released with CGColorSpaceRelease to avoid leaking its memory.

`CGColorSpaceCreateWithName` returns a `CGColorSpaceRef` which
needs to be released with `CGColorSpaceRelease` to avoid leaking
its memory.
So its use is more clear, and to minimize the distance to the matching
`CGColorSpaceRelease`.
@axxel axxel merged commit 986f785 into zxing-cpp:master May 29, 2024
18 checks passed
@markusfisch markusfisch deleted the ios_release_color_space branch March 4, 2025 08:47
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.

2 participants