mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
lottie: --minor memory leak
This commit is contained in:
parent
b66ce727ff
commit
b7888c2ff3
1 changed files with 4 additions and 1 deletions
|
@ -1519,7 +1519,10 @@ bool LottieParser::apply(LottieSlot* slot, bool byDefault)
|
|||
default: break;
|
||||
}
|
||||
|
||||
if (!obj || Invalid()) return false;
|
||||
if (!obj || Invalid()) {
|
||||
delete(obj);
|
||||
return false;
|
||||
}
|
||||
|
||||
slot->assign(obj, byDefault);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue