Merge branch '4.1' into 4.2

This commit is contained in:
Mario Zechner 2024-05-27 13:39:46 +02:00
commit 6c8d5e1615

View File

@ -324,11 +324,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) {