Models: Fix leak

This commit is contained in:
David Markowitz 2023-11-13 22:51:45 -08:00
parent 68e5737b74
commit 23c5d13151

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;