mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
avoid mem leaks in pulse audio driver
This commit is contained in:
parent
758f29cb58
commit
b266369561
1 changed files with 3 additions and 0 deletions
|
@ -250,6 +250,9 @@ fluid_pulse_audio_run2(void* d)
|
|||
|
||||
if (left == NULL || right == NULL || buf == NULL)
|
||||
{
|
||||
FLUID_FREE(left);
|
||||
FLUID_FREE(right);
|
||||
FLUID_FREE(buf);
|
||||
FLUID_LOG(FLUID_ERR, "Out of memory.");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue