Skip to content

Commit

Permalink
fix memory leak in test
Browse files Browse the repository at this point in the history
  • Loading branch information
hant-hub committed Dec 28, 2024
1 parent 56801e5 commit 1a1239b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/testing/TestSDKEngineRecreation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ int TestSDKEngineRecreation(int argc, char* argv[])
delete eng;
for (int i = 0; i < 5; i++)
{
f3d::engine* eng2 = new f3d::engine(f3d::engine::create(false));
eng2->getInteractor().playInteraction(interactionFilePath);
f3d::engine* eng2 = new f3d::engine(f3d::engine::create(false));
eng2->getInteractor().playInteraction(interactionFilePath);
}
delete eng2;

return EXIT_SUCCESS;
}

0 comments on commit 1a1239b

Please sign in to comment.