Try to call snd_config_update_free_global after every call to

snd_pcm_close to prevent apparent memory leaks
This commit is contained in:
twinaphex 2016-05-26 07:19:54 +02:00
parent f0157dea52
commit 4981cc65c9

View File

@ -156,7 +156,10 @@ error:
if (alsa)
{
if (alsa->pcm)
{
snd_pcm_close(alsa->pcm);
snd_config_update_free_global();
}
free(alsa);
}
@ -298,7 +301,9 @@ static void alsa_free(void *data)
{
snd_pcm_drop(alsa->pcm);
snd_pcm_close(alsa->pcm);
snd_config_update_free_global();
}
free(alsa);
}
}