sw_engine: fix mistached c style alloc/free

these are allocated by c style mem alloc.
Thus, they should be freed with free()

Change-Id: I320fff4d5a5bce2374ace6495a9f96c3e1034cfc
This commit is contained in:
Hermet Park 2020-06-03 11:15:40 +09:00
parent ef9f31577e
commit 7ee25cd783
2 changed files with 3 additions and 2 deletions

View file

@ -838,6 +838,7 @@ void strokeReset(SwStroke& stroke, float width, StrokeCap cap, StrokeJoin join)
stroke.borders[1].valid = false; stroke.borders[1].valid = false;
} }
bool strokeParseOutline(SwStroke& stroke, SwOutline& outline) bool strokeParseOutline(SwStroke& stroke, SwOutline& outline)
{ {
uint32_t first = 0; uint32_t first = 0;

View file

@ -36,8 +36,8 @@ struct ShapePath
~ShapePath() ~ShapePath()
{ {
if (cmds) delete(cmds); if (cmds) free(cmds);
if (pts) delete(pts); if (pts) free(pts);
} }
void reserveCmd(size_t cmdCnt) void reserveCmd(size_t cmdCnt)