[c] Added spAnimationState_disposeStatics to appease memory leak detectors.

This commit is contained in:
badlogic 2016-11-24 15:29:45 +01:00
parent 76137540ba
commit f44cbaa044
2 changed files with 6 additions and 0 deletions

View File

@ -138,6 +138,9 @@ void spAnimationState_clearListenerNotifications(spAnimationState* self);
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
typedef spEventType EventType;
#define ANIMATION_START SP_ANIMATION_START

View File

@ -33,6 +33,9 @@
#include <limits.h>
static spAnimation* SP_EMPTY_ANIMATION = 0;
void spAnimationState_disposeStatics () {
FREE(SP_EMPTY_ANIMATION);
}
/* Forward declaration of some "private" functions so we can keep
the same function order in C as we have method order in Java */