Fixed crash from freeing previous twice.

This commit is contained in:
NathanSweet 2013-09-28 01:37:08 +02:00
parent c65830aa85
commit 821c9ea38b

View File

@ -171,7 +171,10 @@ void AnimationState_clearTrack (AnimationState* self, int trackIndex) {
self->tracks[trackIndex] = 0;
_TrackEntry_disposeAll(current);
if (current->previous) _TrackEntry_dispose(current->previous);
if (current->previous) {
_TrackEntry_dispose(current->previous);
current->previous = 0;
}
}
TrackEntry* _AnimationState_expandToIndex (AnimationState* self, int index) {