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 NanoVGRenderer's image initialization. Dispose unused images in image widget #149

Merged
merged 5 commits into from
May 12, 2022

Conversation

fjvallarino
Copy link
Owner

  • NanoVGRenderer initialized the image count as 0, and when checking if the image needed to be removed, it tested for 1. The initialization should have always been 1.
  • The image widget was not disposing of old images if the path changed.

Discussed here: #148

@fjvallarino fjvallarino changed the title Fix memory leak on renderer's image initialization and on image widget Fix memory leak in NanoVGRenderer's image initialization. Dispose unused images in image widget May 12, 2022
@fjvallarino fjvallarino merged commit dc848e8 into main May 12, 2022
@fjvallarino fjvallarino deleted the fix/image-memory-leak branch May 12, 2022 13:59
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.

1 participant