mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
lottie/loader: fix memory leaks
This commit is contained in:
parent
cf826bee5d
commit
c90962a26c
1 changed files with 7 additions and 0 deletions
|
@ -330,6 +330,7 @@ struct LottieImage : LottieObject
|
|||
{
|
||||
free(b64Data);
|
||||
free(mimeType);
|
||||
delete(picture);
|
||||
}
|
||||
|
||||
void prepare()
|
||||
|
@ -372,6 +373,12 @@ struct LottieLayer : LottieGroup
|
|||
children.clear();
|
||||
free(refId);
|
||||
}
|
||||
|
||||
for (auto m = masks.data; m < masks.end(); ++m) {
|
||||
delete(*m);
|
||||
}
|
||||
|
||||
delete(matte.target);
|
||||
}
|
||||
|
||||
uint8_t opacity(int32_t frameNo) override
|
||||
|
|
Loading…
Add table
Reference in a new issue