mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
tests: capi - buffer was not freed
This commit is contained in:
parent
651a98a2d8
commit
8608238343
1 changed files with 4 additions and 0 deletions
|
@ -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]")
|
||||
|
|
Loading…
Add table
Reference in a new issue