mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
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:
parent
ef9f31577e
commit
7ee25cd783
2 changed files with 3 additions and 2 deletions
|
@ -838,6 +838,7 @@ void strokeReset(SwStroke& stroke, float width, StrokeCap cap, StrokeJoin join)
|
|||
stroke.borders[1].valid = false;
|
||||
}
|
||||
|
||||
|
||||
bool strokeParseOutline(SwStroke& stroke, SwOutline& outline)
|
||||
{
|
||||
uint32_t first = 0;
|
||||
|
|
|
@ -36,8 +36,8 @@ struct ShapePath
|
|||
|
||||
~ShapePath()
|
||||
{
|
||||
if (cmds) delete(cmds);
|
||||
if (pts) delete(pts);
|
||||
if (cmds) free(cmds);
|
||||
if (pts) free(pts);
|
||||
}
|
||||
|
||||
void reserveCmd(size_t cmdCnt)
|
||||
|
|
Loading…
Add table
Reference in a new issue