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 for usage of ListBuffer to be properly released #681

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

Raegan03
Copy link
Contributor

When checking the VContainer implementation I've found that ListBuffer is used incorrectly in two instances. The list is being provided by the pool but it's never released to it. I've made a quick fix using BufferScope to properly dispose of and release the list back to the pool.

I've done a test with LifetimeScope:Find<T>(Scene scene) and for 1000 calls only one list was created as expected.

Copy link

vercel bot commented Jun 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vcontainer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 16, 2024 2:15pm

@hadashiA
Copy link
Owner

Thanks!

@hadashiA hadashiA merged commit c4a762b into hadashiA:master Jun 17, 2024
2 checks 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