mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
lottie: hotfix memory leaks by a regression
A regression bug by a recent change:
1ee79a6c2a
This commit is contained in:
parent
0ffd75976c
commit
163b5ed16a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue