mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2025-01-19 23:30:57 +00:00
realloc last buffer before attempting to reuse it
This commit is contained in:
parent
32b72fe50d
commit
ee85a728a7
BIN
dist/MessagesForMacintosh.dsk
vendored
BIN
dist/MessagesForMacintosh.dsk
vendored
Binary file not shown.
BIN
dist/MessagesForMacintosh.zip
vendored
BIN
dist/MessagesForMacintosh.zip
vendored
Binary file not shown.
@ -1215,6 +1215,8 @@ NK_API void nk_quickdraw_render(WindowPtr window, struct nk_context *ctx) {
|
||||
PROFILE_START("memcpy commands");
|
||||
#endif
|
||||
|
||||
free(last);
|
||||
last = calloc(1, MAX_MEMORY_IN_KB * 1024);
|
||||
memcpy(last, cmds, ctx->memory.allocated);
|
||||
|
||||
#ifdef PROFILING
|
||||
|
Loading…
x
Reference in New Issue
Block a user