diff --git a/dGame/dInventory/Item.cpp b/dGame/dInventory/Item.cpp index ea3412d2..32603761 100644 --- a/dGame/dInventory/Item.cpp +++ b/dGame/dInventory/Item.cpp @@ -529,6 +529,12 @@ void Item::RemoveFromInventory() { Item::~Item() { delete preconditions; + + for (auto* value : config) { + delete value; + } + + config.clear(); } void Item::SaveConfigXml(tinyxml2::XMLElement& i) const {