mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +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