mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-03 17:42:21 +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