Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Dec 10, 2024
1 parent d19d9a8 commit e219ab9
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions native/cocos/editor-support/spine-wasm/spine-wasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,9 @@ void SpineWasmUtil::destroySpineSkeleton(Skeleton* skeleton) {
}

uint32_t SpineWasmUtil::queryStoreMemory(uint32_t size) {
if (s_mem) {
if (s_memSize < size) {
delete[] s_mem;
s_mem = new uint8_t[size];
s_memSize = size;
}
} else {
s_mem = new uint8_t[size];
s_memSize = size;
}
s_mem = new uint8_t[size];
s_memSize = size;

return (uint32_t)s_mem;
}

Expand Down

0 comments on commit e219ab9

Please sign in to comment.