# HG changeset patch # User Mike Becker # Date 1732654386 -3600 # Node ID ec49db06dae0c3e417b139bf6bf3cb56bdb0d197 # Parent f708863e7ec602a00cfe0e2c3bafa78f76c2def6 cxBufferFree() now calls cxBufferDestroy() diff -r f708863e7ec6 -r ec49db06dae0 src/buffer.c --- a/src/buffer.c Sat Nov 23 15:15:09 2024 +0100 +++ b/src/buffer.c Tue Nov 26 21:53:06 2024 +0100 @@ -92,9 +92,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); - } + cxBufferDestroy(buffer); cxFree(buffer->allocator, buffer); }