From 021b86a065782e978665b25f254dcc10a1f0dfbe Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Mon, 1 Nov 2021 14:06:47 +0900 Subject: [PATCH] test Picture: Fix array release fix code --- test/testPicture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testPicture.cpp b/test/testPicture.cpp index 66df5adf..8448128b 100644 --- a/test/testPicture.cpp +++ b/test/testPicture.cpp @@ -297,7 +297,7 @@ TEST_CASE("Load SVG file and render", "[tvgPicture]") REQUIRE(Initializer::term(CanvasEngine::Sw) == Result::Success); - delete buffer; + delete[] buffer; } TEST_CASE("Load PNG file and render", "[tvgPicture]") @@ -366,7 +366,7 @@ TEST_CASE("Load TVG file and render", "[tvgPicture]") REQUIRE(Initializer::term(CanvasEngine::Sw) == Result::Success); - delete buffer; + delete[] buffer; } TEST_CASE("Load RAW file and render", "[tvgPicture]")