summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-02-01 18:38:44 -0800
committerChris Robinson <[email protected]>2013-02-01 18:38:44 -0800
commite358882f1466a1282fac09f3593ba9d6b83ebeb2 (patch)
tree1d0a185e7c75395a8ac38a6d5958ba4e5c55c229 /Alc
parent564a1822595e287cf808ea63a03d96719e3cc7b4 (diff)
Destroy the ring buffer when closing down a portaudio device
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/portaudio.c3
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;
}