aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/backends/alsa.c1
1 files changed, 1 insertions, 0 deletions
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;
}