diff -r e8f354a25ac8 -r 68754c7de906 src/buffer.c --- a/src/buffer.c Thu Nov 07 20:22:56 2024 +0100 +++ b/src/buffer.c Thu Nov 07 22:46:58 2024 +0100 @@ -86,6 +86,7 @@ } void cxBufferFree(CxBuffer *buffer) { + if (buffer == NULL) return; if ((buffer->flags & CX_BUFFER_FREE_CONTENTS) == CX_BUFFER_FREE_CONTENTS) { cxFree(buffer->allocator, buffer->bytes); }