examples capi: fix a memory leak.

a shape is not cleaned properly.

@Issues: 178
This commit is contained in:
Hermet Park 2020-12-10 14:23:29 +09:00
parent 462bf277f2
commit d9a0cf3d78

View file

@ -150,6 +150,8 @@ void testCapi()
Tvg_Paint* dup = tvg_paint_duplicate(org); Tvg_Paint* dup = tvg_paint_duplicate(org);
tvg_canvas_push(canvas, dup); tvg_canvas_push(canvas, dup);
tvg_paint_del(org);
//Scene test //Scene test
Tvg_Paint* scene = tvg_scene_new(); Tvg_Paint* scene = tvg_scene_new();