mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
Allocated more memory for events to prevent heap corruption when using events with large string data (#749)
This commit is contained in:
parent
6eb86fd3a1
commit
87499ee545
@ -59,7 +59,7 @@ void _spAnimationState_disposeTrackEntry (spTrackEntry* entry) {
|
||||
spAnimationState* spAnimationState_create (spAnimationStateData* data) {
|
||||
_spAnimationState* internal = NEW(_spAnimationState);
|
||||
spAnimationState* self = SUPER(internal);
|
||||
internal->events = MALLOC(spEvent*, 64);
|
||||
internal->events = MALLOC(spEvent*, 256);
|
||||
self->timeScale = 1;
|
||||
CONST_CAST(spAnimationStateData*, self->data) = data;
|
||||
internal->createTrackEntry = _spAnimationState_createTrackEntry;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user