mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 23:05:01 +08:00
Fixed clearAnimation(int) crash.
This commit is contained in:
parent
b854dd94c3
commit
10fa956f39
@ -174,11 +174,8 @@ void AnimationState_clearTrack (AnimationState* self, int trackIndex) {
|
||||
if (self->listener) self->listener(self, trackIndex, ANIMATION_END, 0, 0);
|
||||
|
||||
self->tracks[trackIndex] = 0;
|
||||
if (current->previous) _TrackEntry_dispose(current->previous);
|
||||
_TrackEntry_disposeAll(current);
|
||||
if (current->previous) {
|
||||
_TrackEntry_dispose(current->previous);
|
||||
current->previous = 0;
|
||||
}
|
||||
}
|
||||
|
||||
TrackEntry* _AnimationState_expandToIndex (AnimationState* self, int index) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user