Destroy the ring buffer when closing down a portaudio device

This commit is contained in:
Chris Robinson 2013-02-01 18:38:44 -08:00
parent 564a182259
commit e358882f14

View File

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