diff options
author | Chris Robinson <[email protected]> | 2018-04-19 12:22:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-04-19 12:22:39 -0700 |
commit | 525b6fe1689de5aff6d4d4c0ac1c3e931d66c1b3 (patch) | |
tree | a8f89d6e789c79e72ad0bb0668701f1dc1006312 | |
parent | f96a8fe369e317a6203bec5e814761fe8a12531e (diff) |
Clear ALSA's PCM handle after closing it
-rw-r--r-- | Alc/backends/alsa.c | 1 |
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; } |