mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
Merge branch '4.1' into 4.2
This commit is contained in:
commit
8880546b78
@ -324,6 +324,12 @@ SkeletonData *SkeletonBinary::readSkeletonData(const unsigned char *binary, cons
|
||||
skeletonData->_skins.add(defaultSkin);
|
||||
}
|
||||
|
||||
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) {
|
||||
Skin *skin = readSkin(input, false, skeletonData, nonessential);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user