mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
test capi: fix memory leak.
Delete the paint which is not committed properly.
This commit is contained in:
parent
fd74e0fae8
commit
651a98a2d8
2 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ TEST_CASE("Save a paint into a file", "[capiSaver]")
|
|||
REQUIRE(tvg_saver_save(saver, paint3, TEST_DIR"/test.tvg", false) == TVG_RESULT_INSUFFICIENT_CONDITION);
|
||||
|
||||
REQUIRE(tvg_saver_del(saver) == TVG_RESULT_SUCCESS);
|
||||
|
||||
tvg_paint_del(paint_empty);
|
||||
}
|
||||
|
||||
TEST_CASE("Synchronize a Saver", "[capiSaver]")
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue