Skip to content
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

openjpeg: fix memory leaks #1113

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

bradh
Copy link
Contributor

@bradh bradh commented Jan 17, 2024

These show when running the unit tests or heif-enc under valgrind.

These show when running the unit tests under valgrind, or with heif-enc.
@farindk farindk merged commit be3fc82 into strukturag:develop-v1.18.0 Jan 17, 2024
2 checks passed
@farindk
Copy link
Contributor

farindk commented Jan 17, 2024

BTW: I've made good experience with wrapping C-pointers in a shared_ptr with the deallocation function as custom deleted. That eliminates all cleanup duties in the error cases.

@bradh bradh deleted the openjpeg_leaks branch January 17, 2024 19:41
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