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

Recycle nextData and previousOldData back into the objectPool upon component destroy #5458

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

mrxz
Copy link
Contributor

@mrxz mrxz commented Feb 11, 2024

Description:
In the Component constructor four objects are requested from the object pool. Upon deletion only two of those were recycled back into the pool. This PR adds the missing two recycle calls, preventing them from leaking memory.

Changes proposed:

  • Recycle nextData and previousOldData upon component destroy.

@dmarcos
Copy link
Member

dmarcos commented Feb 12, 2024

Thanks!

@dmarcos dmarcos merged commit 6b49fb5 into aframevr:master Feb 12, 2024
1 check passed
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