mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-12 19:28:21 +00:00
Merge pull request #1292 from DarkflameUniverse/fix-dismantling
fix: Models leak
This commit is contained in:
commit
79ff6e7ee4
@ -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