mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[c] Fixed more leaks.
This commit is contained in:
parent
f44cbaa044
commit
98e49a7e11
@ -34,7 +34,8 @@
|
|||||||
|
|
||||||
static spAnimation* SP_EMPTY_ANIMATION = 0;
|
static spAnimation* SP_EMPTY_ANIMATION = 0;
|
||||||
void spAnimationState_disposeStatics () {
|
void spAnimationState_disposeStatics () {
|
||||||
FREE(SP_EMPTY_ANIMATION);
|
if (SP_EMPTY_ANIMATION) spAnimation_dispose(SP_EMPTY_ANIMATION);
|
||||||
|
SP_EMPTY_ANIMATION = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Forward declaration of some "private" functions so we can keep
|
/* Forward declaration of some "private" functions so we can keep
|
||||||
@ -175,6 +176,7 @@ void _spEventQueue_drain (_spEventQueue* self) {
|
|||||||
|
|
||||||
void _spAnimationState_disposeTrackEntry (spTrackEntry* entry) {
|
void _spAnimationState_disposeTrackEntry (spTrackEntry* entry) {
|
||||||
FREE(entry->timelinesFirst);
|
FREE(entry->timelinesFirst);
|
||||||
|
FREE(entry->timelinesRotation);
|
||||||
FREE(entry);
|
FREE(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user