[c] Fixed leak in AnimationState, wasn't disposing mixing from entries when entire state is disposed. Confirmed that disposing of mixing froms is done properly if anim state is allowed to update until the mixing from is done.

This commit is contained in:
badlogic 2016-11-25 16:02:49 +01:00
parent 98e49a7e11
commit 900001098b

View File

@ -175,7 +175,8 @@ void _spEventQueue_drain (_spEventQueue* self) {
}
void _spAnimationState_disposeTrackEntry (spTrackEntry* entry) {
FREE(entry->timelinesFirst);
if (entry->mixingFrom) _spAnimationState_disposeTrackEntry(entry->mixingFrom);
FREE(entry->timelinesFirst);
FREE(entry->timelinesRotation);
FREE(entry);
}