mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
loader lottie: fix the last memory leak.
This commit is contained in:
parent
921bd94b6f
commit
816f179c74
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ void LottieParser::getValue(ColorStop& color)
|
||||||
|
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
auto count = context->gradient->colorStops.count;
|
auto count = context->gradient->colorStops.count;
|
||||||
color.data = static_cast<Fill::ColorStop*>(malloc(sizeof(Fill::ColorStop) * count));
|
if (!color.data) color.data = static_cast<Fill::ColorStop*>(malloc(sizeof(Fill::ColorStop) * count));
|
||||||
|
|
||||||
while (nextArrayValue()) {
|
while (nextArrayValue()) {
|
||||||
auto remains = (idx % 4);
|
auto remains = (idx % 4);
|
||||||
|
|
Loading…
Add table
Reference in a new issue