mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[c] Fixes memory leak in SkeletonBinary.c. Closes #796
This commit is contained in:
parent
f36a573072
commit
31b5011acf
@ -582,6 +582,7 @@ static spAnimation* _spSkeletonBinary_readAnimation (spSkeletonBinary* self, con
|
||||
kv_trim(spTimeline*, timelines);
|
||||
|
||||
animation = spAnimation_create(name, 0);
|
||||
FREE(animation->timelines);
|
||||
animation->duration = duration;
|
||||
animation->timelinesCount = kv_size(timelines);
|
||||
animation->timelines = kv_array(timelines);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user