mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Models: Fix leak
This commit is contained in:
parent
68e5737b74
commit
23c5d13151
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user