Add more AMF unit tests

This commit is contained in:
Turo Lamminen
2023-03-22 12:00:55 +02:00
parent c546a4a73a
commit 5ddd18d1c7
2 changed files with 76 additions and 0 deletions

View File

@@ -815,6 +815,7 @@ nl_clean_loop:
for (; next_it != nodeArray.end(); ++next_it) {
if ((*next_it)->FindNode((*nl_it)->mName) != nullptr) {
// if current top node(nl_it) found in another top node then erase it from node_list and restart search loop.
// FIXME: this leaks memory on test models test8.amf and test9.amf
nodeArray.erase(nl_it);
goto nl_clean_loop;