renderer: fixed a memory leak

This issue only valid on the main branch.

regression by 1806b32971

issue: https://github.com/thorvg/thorvg/issues/3070
This commit is contained in:
Hermet Park 2024-12-23 21:54:38 +09:00 committed by Hermet Park
parent 37c7e1efa6
commit 041ab1117b

View file

@ -109,7 +109,7 @@ namespace tvg
if (free && refCnt == 0) {
//TODO: use the global dismiss function?
delete(this);
delete(paint);
return 0;
}