mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[c] Closes #1247, memory leak in SkeletonBinary when reading non-weighted meshes.
This commit is contained in:
parent
0003e88698
commit
ccc1013461
@ -649,6 +649,8 @@ static void _readVertices(spSkeletonBinary* self, _dataInput* input, spVertexAtt
|
|||||||
attachment->vertices = _readFloatArray(input, verticesLength, self->scale);
|
attachment->vertices = _readFloatArray(input, verticesLength, self->scale);
|
||||||
attachment->bonesCount = 0;
|
attachment->bonesCount = 0;
|
||||||
attachment->bones = 0;
|
attachment->bones = 0;
|
||||||
|
spFloatArray_dispose(weights);
|
||||||
|
spFloatArray_dispose(bones);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user