diff --git a/spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp b/spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp index 978a42130..79cc73d67 100644 --- a/spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp +++ b/spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp @@ -274,11 +274,11 @@ SkeletonData *SkeletonBinary::readSkeletonData(const unsigned char *binary, cons skeletonData->_skins.add(defaultSkin); } - if (!this->getError().isEmpty()) { - delete input; - delete skeletonData; - return NULL; - } + if (!this->getError().isEmpty()) { + delete input; + delete skeletonData; + return NULL; + } /* Skins. */ for (size_t i = 0, n = (size_t) readVarint(input, true); i < n; ++i) {