mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
* [SPINE-C] fix mem leak
This commit is contained in:
parent
69353f9d22
commit
60fc7ac56e
@ -117,6 +117,10 @@ void spSkeleton_dispose (spSkeleton* self) {
|
|||||||
spSlot_dispose(self->slots[i]);
|
spSlot_dispose(self->slots[i]);
|
||||||
FREE(self->slots);
|
FREE(self->slots);
|
||||||
|
|
||||||
|
for (i = 0; i < self->ikConstraintsCount; ++i)
|
||||||
|
spIkConstraint_dispose(self->ikConstraints[i]);
|
||||||
|
FREE(self->ikConstraints);
|
||||||
|
|
||||||
FREE(self->drawOrder);
|
FREE(self->drawOrder);
|
||||||
FREE(self);
|
FREE(self);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user