From ceb07c61df33558eae0b45b65189b25449e8160a Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 30 Sep 2024 23:32:24 +0900 Subject: [PATCH] test: fix a memory leak --- test/testAnimation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testAnimation.cpp b/test/testAnimation.cpp index c713481e..3e310ea2 100644 --- a/test/testAnimation.cpp +++ b/test/testAnimation.cpp @@ -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() == Result::Success); }