mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
test: fix a memory leak
This commit is contained in:
parent
894ecd7461
commit
ceb07c61df
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue