mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[c] Fixed memory leak in AnimationState.c
This commit is contained in:
parent
37b6fe3c11
commit
04e4d1f40d
@ -67,6 +67,7 @@ _spEventQueue* _spEventQueue_create (_spAnimationState* state) {
|
|||||||
|
|
||||||
void _spEventQueue_free (_spEventQueue* self) {
|
void _spEventQueue_free (_spEventQueue* self) {
|
||||||
FREE(self->objects);
|
FREE(self->objects);
|
||||||
|
FREE(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _spEventQueue_ensureCapacity (_spEventQueue* self, int newElements) {
|
void _spEventQueue_ensureCapacity (_spEventQueue* self, int newElements) {
|
||||||
@ -214,6 +215,7 @@ void spAnimationState_dispose (spAnimationState* self) {
|
|||||||
_spEventQueue_free(internal->queue);
|
_spEventQueue_free(internal->queue);
|
||||||
FREE(internal->events);
|
FREE(internal->events);
|
||||||
FREE(internal->propertyIDs);
|
FREE(internal->propertyIDs);
|
||||||
|
FREE(internal);
|
||||||
}
|
}
|
||||||
|
|
||||||
void spAnimationState_update (spAnimationState* self, float delta) {
|
void spAnimationState_update (spAnimationState* self, float delta) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user