mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
examples: fix memory leak
This commit is contained in:
parent
c4d09160e4
commit
2abfa98bae
1 changed files with 2 additions and 0 deletions
|
@ -386,6 +386,8 @@ void tvgDrawCmds(tvg::Canvas* canvas)
|
|||
image4->composite(std::move(mask4), tvg::CompositeMethod::InvAlphaMask);
|
||||
canvas->push(std::move(image4));
|
||||
}
|
||||
|
||||
free(data);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue