diff --git a/src/utils/fluid_ringbuffer.c b/src/utils/fluid_ringbuffer.c index e276c04e..512c95a3 100644 --- a/src/utils/fluid_ringbuffer.c +++ b/src/utils/fluid_ringbuffer.c @@ -84,6 +84,9 @@ new_fluid_ringbuffer (int count, int elementsize) void delete_fluid_ringbuffer (fluid_ringbuffer_t *queue) { + if(queue != NULL) + { FLUID_FREE (queue->array); FLUID_FREE (queue); + } }