lottie: --minor memory leak

This commit is contained in:
Hermet Park 2024-11-19 01:13:19 +09:00
parent 1779689f03
commit bf7b837b17

View file

@ -1488,7 +1488,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);