mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 05:11:33 +00:00
fix segfault in delete_fluid_ringbuffer()
This commit is contained in:
parent
2b882c2877
commit
d8d5679c8e
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue