mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Fixed update cache leak.
This commit is contained in:
parent
b25992464b
commit
4128d1c2bd
@ -112,6 +112,10 @@ spSkeleton* spSkeleton_create (spSkeletonData* data) {
|
||||
|
||||
void spSkeleton_dispose (spSkeleton* self) {
|
||||
int i;
|
||||
_spSkeleton* internal = SUB_CAST(_spSkeleton, self);
|
||||
|
||||
FREE(internal->updateCache);
|
||||
FREE(internal->updateCacheType);
|
||||
|
||||
for (i = 0; i < self->bonesCount; ++i)
|
||||
spBone_dispose(self->bones[i]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user