test: fix a memory leak

This commit is contained in:
Hermet Park 2024-09-30 23:32:24 +09:00 committed by Hermet Park
parent 894ecd7461
commit ceb07c61df

View file

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