mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
renderer: hotfix a nullptr memory copy
This commit is contained in:
parent
6a7e6966c3
commit
746ca7f58b
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ struct Fill::Impl
|
|||
cnt = dup->cnt;
|
||||
spread = dup->spread;
|
||||
colorStops = static_cast<ColorStop*>(malloc(sizeof(ColorStop) * dup->cnt));
|
||||
memcpy(colorStops, dup->colorStops, sizeof(ColorStop) * dup->cnt);
|
||||
if (dup->cnt > 0) memcpy(colorStops, dup->colorStops, sizeof(ColorStop) * dup->cnt);
|
||||
transform = dup->transform;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue