mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 06:04:03 +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;
|
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;
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue