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

Use shared_ptr for depot locker and depot chests #3423

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

nekiro
Copy link
Member

@nekiro nekiro commented Apr 22, 2021

This should fix memory leak pointed out in #3346
I didn't test this code, so testing is welcome!

@MillhioreBT
Copy link
Contributor

Simply perfect and a way forward to change all pointers to smart

@EPuncker EPuncker requested a review from a team April 22, 2021 18:36
Copy link
Contributor

@EvilHero90 EvilHero90 left a comment

Choose a reason for hiding this comment

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

Code wise this looks fine to me

@ranisalt
Copy link
Member

Why is the pipeline failing though?

@nekiro
Copy link
Member Author

nekiro commented Apr 23, 2021

Why is the pipeline failing though?

It's some vcpkg thing that fails, code compiled fine cause I tested the compilation at least xD

@nekiro nekiro merged commit dd934dd into otland:master Apr 23, 2021
@nekiro nekiro deleted the fix-depots-memory-leak branch April 23, 2021 19:32
@Znote Znote mentioned this pull request May 10, 2021
2 tasks
@MillhioreBT MillhioreBT mentioned this pull request May 11, 2021
3 tasks
@nekiro nekiro mentioned this pull request Jul 23, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible memory leak - depots not getting deleted from memory at player deletion
5 participants