From e358882f1466a1282fac09f3593ba9d6b83ebeb2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 1 Feb 2013 18:38:44 -0800 Subject: Destroy the ring buffer when closing down a portaudio device --- Alc/backends/portaudio.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Alc') 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; } -- cgit v1.2.3