fix segfault in delete_fluid_ringbuffer()

This commit is contained in:
derselbst 2017-10-28 19:47:56 +02:00
parent 2b882c2877
commit d8d5679c8e

View file

@ -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);
}
}