mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Update SkeletonBinary.c (#2790)
remove making extra copy of cString which cause the existing cString to be leak, and can not be disposed later,
This commit is contained in:
parent
294399886a
commit
4071565a9c
@ -1178,11 +1178,6 @@ spAttachment *spSkeletonBinary_readAttachment(spSkeletonBinary *self, _dataInput
|
|||||||
return NULL;
|
return NULL;
|
||||||
mesh = SUB_CAST(spMeshAttachment, attachment);
|
mesh = SUB_CAST(spMeshAttachment, attachment);
|
||||||
mesh->path = (char *) path;
|
mesh->path = (char *) path;
|
||||||
if (mesh->path) {
|
|
||||||
char *tmp = NULL;
|
|
||||||
MALLOC_STR(tmp, mesh->path);
|
|
||||||
mesh->path = tmp;
|
|
||||||
}
|
|
||||||
spColor_setFromColor(&mesh->color, &color);
|
spColor_setFromColor(&mesh->color, &color);
|
||||||
mesh->sequence = sequence;
|
mesh->sequence = sequence;
|
||||||
mesh->width = width;
|
mesh->width = width;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user