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