avoid mem leaks in pulse audio driver

This commit is contained in:
derselbst 2017-10-21 12:17:26 +02:00
parent 758f29cb58
commit b266369561

View file

@ -250,6 +250,9 @@ fluid_pulse_audio_run2(void* d)
if (left == NULL || right == NULL || buf == NULL) if (left == NULL || right == NULL || buf == NULL)
{ {
FLUID_FREE(left);
FLUID_FREE(right);
FLUID_FREE(buf);
FLUID_LOG(FLUID_ERR, "Out of memory."); FLUID_LOG(FLUID_ERR, "Out of memory.");
return; return;
} }