Merge pull request #1292 from DarkflameUniverse/fix-dismantling

fix: Models leak
This commit is contained in:
Gie "Max" Vanommeslaeghe 2023-11-14 13:38:32 +01:00 committed by GitHub
commit 79ff6e7ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -433,7 +433,7 @@ void Item::DisassembleModel() {
return;
}
auto* doc = new tinyxml2::XMLDocument();
std::unique_ptr<tinyxml2::XMLDocument> doc(new tinyxml2::XMLDocument());
if (!doc) {
return;