Skip to content

XmlDocument() memory leak #2

@AnthonyZJiang

Description

@AnthonyZJiang

Issue: Memory usage can become hugh (>1G) once a big savegame is loaded. It gets doubled when edits are being saved to savegame. This memory, however, is only released after the application is closed.

Cause: The LSX content loaded using XmlDocument().Load does not get disposed properly after all references to the object are destroyed.

Possible fix: use XmlRead instead of XmlDocument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions