mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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;
|
self->tracks[trackIndex] = 0;
|
||||||
_TrackEntry_disposeAll(current);
|
_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) {
|
TrackEntry* _AnimationState_expandToIndex (AnimationState* self, int index) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user