test: fix a memory leak

This commit is contained in:
Hermet Park 2024-09-30 23:32:24 +09:00
parent c8a04a5337
commit c39910cfd6

View file

@ -259,6 +259,8 @@ TEST_CASE("Animation Lottie11", "[tvgAnimation]")
file.close();
REQUIRE(picture->load(data, size, "json", true) == Result::Success);
free(data);
REQUIRE(Initializer::term(tvg::CanvasEngine::Sw) == Result::Success);
}