Skip to content

Fix engineGetModelTextures memory leak #1704

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

Conversation

theSarrum
Copy link
Contributor

Stopping a resource that used engineGetModelTextures does not release the memory used by textures. This pull request solves this problem by setting a parent for the texture.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Good catch, thanks.

@StrixG StrixG added the bug Something isn't working label Oct 10, 2020
@StrixG StrixG added this to the 1.5.8 milestone Oct 10, 2020
Copy link
Contributor

@qaisjp qaisjp left a comment

Choose a reason for hiding this comment

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

left a small suggestion but this lgtm

Co-authored-by: Qais Patankar <[email protected]>
@qaisjp qaisjp merged commit d9ee1af into multitheftauto:master Oct 11, 2020
@theSarrum theSarrum deleted the engineGetModelTextures-leak-fix branch August 4, 2021 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants