From c39910cfd6b027baa93a04e99adeb969b7fc1266 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 8700abac..426e8e83 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(tvg::CanvasEngine::Sw) == Result::Success); }