Skip to content

Commit

Permalink
Models: Fix leak
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed Nov 14, 2023
1 parent 68e5737 commit 23c5d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dGame/dInventory/Item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 23c5d13

Please sign in to comment.