diff --git a/dGame/dInventory/Item.cpp b/dGame/dInventory/Item.cpp index 3b12f8b30..a585e60eb 100644 --- a/dGame/dInventory/Item.cpp +++ b/dGame/dInventory/Item.cpp @@ -433,7 +433,7 @@ void Item::DisassembleModel() { return; } - auto* doc = new tinyxml2::XMLDocument(); + std::unique_ptr doc(new tinyxml2::XMLDocument()); if (!doc) { return;