lottie: hotfix memory leaks by a regression

A regression bug by a recent change:
1ee79a6c2a
This commit is contained in:
Hermet Park 2024-05-30 12:44:02 +09:00 committed by Hermet Park
parent 6870953713
commit 7ce8db4d34

View file

@ -1122,8 +1122,9 @@ static void _updatePrecomp(LottieLayer* precomp, float frameNo, LottieExpression
frameNo = precomp->remap(frameNo, exps);
for (auto child = precomp->children.end() - 1; child >= precomp->children.begin(); --child) {
_updateLayer(precomp, static_cast<LottieLayer*>(*child), frameNo, exps);
for (auto c = precomp->children.end() - 1; c >= precomp->children.begin(); --c) {
auto child = static_cast<LottieLayer*>(*c);
if (!child->matteSrc) _updateLayer(precomp, child, frameNo, exps);
}
//clip the layer viewport