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 leaks on error in avifMetaFindOrCreateItem() #1838

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

wantehchang
Copy link
Collaborator

Also rename item_ptr to itemPtr.

Also rename item_ptr to itemPtr.
wantehchang referenced this pull request Dec 2, 2023
Instead of storing the struct directly in a dynamic array, store
it as pointers that are stored in a dynamic array. This way when
the dynamic array is resized, the pointers will still be valid and
be copied over and there will be no dangling pointers.
Copy link
Collaborator

@vigneshvg vigneshvg left a comment

Choose a reason for hiding this comment

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

thank you!

@wantehchang wantehchang merged commit 887ab8c into AOMediaCodec:main Dec 2, 2023
17 checks passed
@wantehchang wantehchang deleted the meta-items-cleanup branch December 2, 2023 23:35
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