diff options
-rw-r--r-- | Alc/backends/portaudio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/backends/portaudio.c b/Alc/backends/portaudio.c index 2f576639..2a80bfa6 100644 --- a/Alc/backends/portaudio.c +++ b/Alc/backends/portaudio.c @@ -381,6 +381,9 @@ static void pa_close_capture(ALCdevice *device) if(err != paNoError) ERR("Error closing stream: %s\n", Pa_GetErrorText(err)); + DestroyRingBuffer(data->ring); + data->ring = NULL; + free(data); device->ExtraData = NULL; } |