10000 Fix crash and memory leak because of Resources by flowln · Pull Request #1150 · PolyMC/PolyMC · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix crash and memory leak because of Resources #1150

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
merged 4 commits into from
Sep 20, 2022

Conversation

flowln
Copy link
Contributor
@flowln flowln commented Sep 16, 2022

Fixes #1136, and a memory leak while we're at it! =D

The problem was primarily to do with thread affinity issues when creating new resources in worker threads, and also because of creating temporary shared pointers to raw pointers when creating parse tasks, and also when trying to print the mod list 💀

friendly reminder to always delete your news.

Signed-off-by: flow <flowlnlnln@gmail.com>
This avoids them getting deleted when the worker thread exits, due to
thread affinity on the created thread.

Signed-off-by: flow <flowlnlnln@gmail.com>
This fixes the launcher crashing when opening the game :iea:

Signed-off-by: flow <flowlnlnln@gmail.com>
and use const accessors whenever we can!

Signed-off-by: flow <flowlnlnln@gmail.com>
@flowln flowln added the bug Something isn't working label Sep 16, 2022
@flowln flowln added this to the 5.0 milestone Sep 16, 2022
@txtsd txtsd merged commit 40c6859 into PolyMC:develop Sep 20, 2022
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.

[develop] closing mc causes polymc to crash
3 participants
0