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

Fix gain map memory leak and null ptr dereference #1883

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

y-guyon
Copy link
Collaborator

@y-guyon y-guyon commented Dec 14, 2023

No description provided.

@@ -1170,6 +1170,7 @@ void avifGainMapDestroy(avifGainMap * gainMap)
if (gainMap->image) {
avifImageDestroy(gainMap->image);
}
avifRWDataFree(&gainMap->altICC);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh, actually this should be moved to avifGainMapDestroy() and the call below should be avifGainMapDestroy() as well

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry I misread the github diff this is actually what you're doing -_- nevermind!

@y-guyon y-guyon merged commit 58f0d73 into AOMediaCodec:main Dec 14, 2023
17 checks passed
@y-guyon y-guyon deleted the fixavifjpeg branch December 14, 2023 16:17
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