test Picture: Fix array release
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 1 Nov 2021 05:06:47 +0000 (14:06 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 2 Nov 2021 00:41:05 +0000 (09:41 +0900)
fix code

test/testPicture.cpp

index 66df5ad..8448128 100644 (file)
@@ -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]")