test capi: fix memory leak.

Delete the paint which is not committed properly.
This commit is contained in:
Hermet Park 2021-11-05 21:36:57 +09:00 committed by Mira Grudzinska
parent fd74e0fae8
commit 651a98a2d8
2 changed files with 2 additions and 0 deletions

View file

@ -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.