mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-07 03:06:55 +08:00
[c] Added spAnimationState_disposeStatics to appease memory leak detectors.
This commit is contained in:
parent
76137540ba
commit
f44cbaa044
@ -138,6 +138,9 @@ void spAnimationState_clearListenerNotifications(spAnimationState* self);
|
|||||||
|
|
||||||
float spTrackEntry_getAnimationTime (spTrackEntry* entry);
|
float spTrackEntry_getAnimationTime (spTrackEntry* entry);
|
||||||
|
|
||||||
|
/** Use this to dispose static memory before your app exits to appease your memory leak detector*/
|
||||||
|
void spAnimationState_disposeStatics ();
|
||||||
|
|
||||||
#ifdef SPINE_SHORT_NAMES
|
#ifdef SPINE_SHORT_NAMES
|
||||||
typedef spEventType EventType;
|
typedef spEventType EventType;
|
||||||
#define ANIMATION_START SP_ANIMATION_START
|
#define ANIMATION_START SP_ANIMATION_START
|
||||||
|
|||||||
@ -33,6 +33,9 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
static spAnimation* SP_EMPTY_ANIMATION = 0;
|
static spAnimation* SP_EMPTY_ANIMATION = 0;
|
||||||
|
void spAnimationState_disposeStatics () {
|
||||||
|
FREE(SP_EMPTY_ANIMATION);
|
||||||
|
}
|
||||||
|
|
||||||
/* Forward declaration of some "private" functions so we can keep
|
/* Forward declaration of some "private" functions so we can keep
|
||||||
the same function order in C as we have method order in Java */
|
the same function order in C as we have method order in Java */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user