mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 09:08:42 +08:00
Fixed crash from freeing previous twice.
This commit is contained in:
parent
c65830aa85
commit
821c9ea38b
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user