Fixed memory leaks in spine-c

This commit is contained in:
dazza 2013-04-26 18:28:10 +01:00
parent 0c76ba47da
commit bd4431748c
5 changed files with 5 additions and 1 deletions

View File

@ -474,7 +474,7 @@ void _AttachmentTimeline_dispose (Timeline* timeline) {
for (i = 0; i < self->framesLength; ++i)
FREE(self->attachmentNames[i]);
FREE(self->attachmentNames);
FREE(self->frames);
FREE(self);
}

View File

@ -40,6 +40,7 @@ AtlasPage* AtlasPage_create (const char* name) {
void AtlasPage_dispose (AtlasPage* self) {
FREE(self->name);
_AtlasPage_disposeTexture(self);
FREE(self);
}
/**/

View File

@ -52,6 +52,7 @@ void _Attachment_deinit (Attachment* self) {
void Attachment_dispose (Attachment* self) {
VTABLE(Attachment, self) ->dispose(self);
FREE(self);
}
#ifdef __cplusplus

View File

@ -52,6 +52,7 @@ void _AttachmentLoader_deinit (AttachmentLoader* self) {
void AttachmentLoader_dispose (AttachmentLoader* self) {
VTABLE(AttachmentLoader, self) ->dispose(self);
FREE(self);
}
Attachment* AttachmentLoader_newAttachment (AttachmentLoader* self, Skin* skin, AttachmentType type, const char* name) {

View File

@ -95,6 +95,7 @@ void Skeleton_dispose (Skeleton* self) {
FREE(self->slots);
FREE(self->drawOrder);
FREE(self);
}
void Skeleton_updateWorldTransform (const Skeleton* self) {