From 525b6fe1689de5aff6d4d4c0ac1c3e931d66c1b3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 19 Apr 2018 12:22:39 -0700 Subject: Clear ALSA's PCM handle after closing it --- Alc/backends/alsa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c index 9fc36582..e0fdc070 100644 --- a/Alc/backends/alsa.c +++ b/Alc/backends/alsa.c @@ -1146,6 +1146,7 @@ error2: ll_ringbuffer_free(self->ring); self->ring = NULL; snd_pcm_close(self->pcmHandle); + self->pcmHandle = NULL; return ALC_INVALID_VALUE; } -- cgit v1.2.3