mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 20:44:52 +00:00
examples blending: fix a memory leak.
This commit is contained in:
parent
65189ab8e8
commit
f551531bb5
1 changed files with 2 additions and 0 deletions
|
@ -167,6 +167,8 @@ void tvgDrawCmds(tvg::Canvas* canvas)
|
||||||
picture4->rotate(90);
|
picture4->rotate(90);
|
||||||
picture4->blend(tvg::BlendMethod::SoftLight);
|
picture4->blend(tvg::BlendMethod::SoftLight);
|
||||||
canvas->push(std::move(picture4));
|
canvas->push(std::move(picture4));
|
||||||
|
|
||||||
|
free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue