Clear ALSA's PCM handle after closing it

This commit is contained in:
Chris Robinson 2018-04-19 12:22:39 -07:00
parent f96a8fe369
commit 525b6fe168

View File

@ -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;
}