From 1d3516da44fa4055fe7f3d0d055068d3b4590735 Mon Sep 17 00:00:00 2001 From: flaming0 Date: Mon, 3 Jun 2013 20:52:32 +0400 Subject: [PATCH] Update for spine runtime. --- extensions/spine/Atlas.cpp | 2 +- extensions/spine/Skeleton.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/spine/Atlas.cpp b/extensions/spine/Atlas.cpp index c0571efd15..7f04c26550 100644 --- a/extensions/spine/Atlas.cpp +++ b/extensions/spine/Atlas.cpp @@ -36,8 +36,8 @@ AtlasPage* AtlasPage_create (const char* name) { } void AtlasPage_dispose (AtlasPage* self) { - FREE(self->name); _AtlasPage_disposeTexture(self); + FREE(self->name); FREE(self); } diff --git a/extensions/spine/Skeleton.cpp b/extensions/spine/Skeleton.cpp index 6e782a874f..033e46bf02 100644 --- a/extensions/spine/Skeleton.cpp +++ b/extensions/spine/Skeleton.cpp @@ -60,14 +60,13 @@ Skeleton* Skeleton_create (SkeletonData* data) { SlotData *slotData = data->slots[i]; /* Find bone for the slotData's boneData. */ - Bone *bone; + Bone* bone = 0; for (ii = 0; ii < self->boneCount; ++ii) { if (data->bones[ii] == slotData->boneData) { bone = self->bones[ii]; break; } } - self->slots[i] = Slot_create(slotData, self, bone); }