tests: capi - buffer was not freed

This commit is contained in:
Mira Grudzinska 2021-11-08 00:36:47 +01:00 committed by Hermet Park
parent 651a98a2d8
commit 8608238343

View file

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