mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
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:
parent
f0157dea52
commit
4981cc65c9
@ -156,7 +156,10 @@ error:
|
|||||||
if (alsa)
|
if (alsa)
|
||||||
{
|
{
|
||||||
if (alsa->pcm)
|
if (alsa->pcm)
|
||||||
|
{
|
||||||
snd_pcm_close(alsa->pcm);
|
snd_pcm_close(alsa->pcm);
|
||||||
|
snd_config_update_free_global();
|
||||||
|
}
|
||||||
|
|
||||||
free(alsa);
|
free(alsa);
|
||||||
}
|
}
|
||||||
@ -298,7 +301,9 @@ static void alsa_free(void *data)
|
|||||||
{
|
{
|
||||||
snd_pcm_drop(alsa->pcm);
|
snd_pcm_drop(alsa->pcm);
|
||||||
snd_pcm_close(alsa->pcm);
|
snd_pcm_close(alsa->pcm);
|
||||||
|
snd_config_update_free_global();
|
||||||
}
|
}
|
||||||
|
|
||||||
free(alsa);
|
free(alsa);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user