Fix Invalid-free in Assimp::FBX::Scope::Scope

pull/5207/head
Alex 2023-08-16 07:45:23 +00:00
parent 3a02de4d28
commit 5c45cdc0ad
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ Scope::Scope(Parser& parser,bool topLevel)
elements.insert(ElementMap::value_type(str, element));
return;
}
delete element;
delete_Element(element);
ParseError("unexpected end of file",parser.LastToken());
} else {
elements.insert(ElementMap::value_type(str, element));