[c] Fixed more leaks.

This commit is contained in:
badlogic 2016-11-24 16:48:32 +01:00
parent f44cbaa044
commit 98e49a7e11

View File

@ -34,7 +34,8 @@
static spAnimation* SP_EMPTY_ANIMATION = 0;
void spAnimationState_disposeStatics () {
FREE(SP_EMPTY_ANIMATION);
if (SP_EMPTY_ANIMATION) spAnimation_dispose(SP_EMPTY_ANIMATION);
SP_EMPTY_ANIMATION = 0;
}
/* Forward declaration of some "private" functions so we can keep
@ -175,6 +176,7 @@ void _spEventQueue_drain (_spEventQueue* self) {
void _spAnimationState_disposeTrackEntry (spTrackEntry* entry) {
FREE(entry->timelinesFirst);
FREE(entry->timelinesRotation);
FREE(entry);
}