mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
examples: fix memory leak
This commit is contained in:
parent
f9b6617405
commit
9145638ec6
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);
|
image4->composite(std::move(mask4), tvg::CompositeMethod::InvAlphaMask);
|
||||||
canvas->push(std::move(image4));
|
canvas->push(std::move(image4));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue