tests: capi - buffer was not freed
authorMira Grudzinska <m.grudzinska@samsung.com>
Sun, 7 Nov 2021 23:36:47 +0000 (00:36 +0100)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 8 Nov 2021 09:01:54 +0000 (18:01 +0900)
test/capi/capiSwCanvas.cpp

index 65fb8db..2a39eb1 100644 (file)
@@ -81,6 +81,8 @@ TEST_CASE("Canvas initialization", "[capiSwCanvas]")
     REQUIRE(tvg_canvas_destroy(canvas) == TVG_RESULT_SUCCESS);
 
     REQUIRE(tvg_engine_term(TVG_ENGINE_SW) == TVG_RESULT_SUCCESS);
+
+    free(buffer);
 }
 
 TEST_CASE("Canvas draw", "[capiSwCanvas]")
@@ -124,6 +126,8 @@ TEST_CASE("Canvas draw", "[capiSwCanvas]")
     REQUIRE(tvg_canvas_destroy(canvas) == TVG_RESULT_SUCCESS);
 
     REQUIRE(tvg_engine_term(TVG_ENGINE_SW) == TVG_RESULT_SUCCESS);
+
+    free(buffer);
 }
 
 TEST_CASE("Canvas update, clear and reuse", "[capiSwCanvas]")