mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-04 10:01:16 +00:00
fix memory leak in fluid_alsa.c, fix #147
This commit is contained in:
parent
f52597be03
commit
813f6243c1
1 changed files with 2 additions and 2 deletions
|
@ -384,7 +384,7 @@ static void fluid_alsa_audio_run_float (void *d)
|
|||
|
||||
if ((left == NULL) || (right == NULL)) {
|
||||
FLUID_LOG(FLUID_ERR, "Out of memory.");
|
||||
return;
|
||||
goto error_recovery;
|
||||
}
|
||||
|
||||
if (snd_pcm_prepare(dev->pcm) != 0) {
|
||||
|
@ -460,7 +460,7 @@ static void fluid_alsa_audio_run_s16 (void *d)
|
|||
|
||||
if ((left == NULL) || (right == NULL) || (buf == NULL)) {
|
||||
FLUID_LOG(FLUID_ERR, "Out of memory.");
|
||||
return;
|
||||
goto error_recovery;
|
||||
}
|
||||
|
||||
handle[0] = left;
|
||||
|
|
Loading…
Reference in a new issue