Skip to content

Commit

Permalink
Merge pull request #1292 from DarkflameUniverse/fix-dismantling
Browse files Browse the repository at this point in the history
fix: Models leak
  • Loading branch information
DarwinAnim8or authored Nov 14, 2023
2 parents 4167d98 + 23c5d13 commit 79ff6e7
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 79ff6e7

Please sign in to comment.