[c] Fixed memory leak in AnimationState.c

This commit is contained in:
badlogic 2016-11-22 14:18:11 +01:00
parent 37b6fe3c11
commit 04e4d1f40d

View File

@ -67,6 +67,7 @@ _spEventQueue* _spEventQueue_create (_spAnimationState* state) {
void _spEventQueue_free (_spEventQueue* self) {
FREE(self->objects);
FREE(self);
}
void _spEventQueue_ensureCapacity (_spEventQueue* self, int newElements) {
@ -214,6 +215,7 @@ void spAnimationState_dispose (spAnimationState* self) {
_spEventQueue_free(internal->queue);
FREE(internal->events);
FREE(internal->propertyIDs);
FREE(internal);
}
void spAnimationState_update (spAnimationState* self, float delta) {