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
c8a04a5337
commit
c39910cfd6
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(tvg::CanvasEngine::Sw) == Result::Success);
|
REQUIRE(Initializer::term(tvg::CanvasEngine::Sw) == Result::Success);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue