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 memory leak in GltfReader.cpp #242

Merged
merged 1 commit into from May 6, 2021
Merged

Conversation

Samulus
Copy link
Contributor

@Samulus Samulus commented May 6, 2021

pImage isn't being freed after being copied. This fixes that leak: We're running into out of memory crashes without it 😬

@baothientran baothientran merged commit 24076a6 into main May 6, 2021
@baothientran baothientran deleted the fix-reader-memory-leak branch May 6, 2021 15:58
@kring
Copy link
Member

kring commented May 6, 2021

Oh wow, thanks for noticing this one!

@kring
Copy link
Member

kring commented May 7, 2021

This definitely deserves a mention in CHANGES.md. Can someone please add it? Also it would be slightly better to use stbi_image_free instead of free (even though they're equivalent).

@baothientran
Copy link
Contributor

whoops sorry for miss this, I will update it right away

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.

None yet

3 participants