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

chore: remove usage of xmldoc as a ptr #1538

Merged
merged 1 commit into from
Apr 8, 2024
Merged

Conversation

EmosewaMC
Copy link
Collaborator

resolves a possible memory leak in BrickDatabase, adds stability to character save doc as it can now no longer be null (and given the context of when UpdateXml would is called, it cannot be a stale reference either since an entity must exist in order to save and LoadFromXml).

Tested that saving manually via force-save, logout and /crash all saved my position and my removed banana as expected. The doc was always deleted on character destruction and on any updates, so this is just a semantic change (and now we no longer have new'd tinyxml2::documents on the heap)

resolves a memory leak in BrickDatabase, adds stability to character save doc.

Tested that saving manually via force-save, logout and /crash all saved my position and my removed banana as expected.
The doc was always deleted on character destruction and on any updates, so this is just a semantic change (and now we no longer have new'd tinyxml2::documents on the heap)
@aronwk-aaron aronwk-aaron merged commit 28ce8ac into main Apr 8, 2024
4 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.

3 participants