Destroy the ring buffer when closing down a portaudio device
This commit is contained in:
parent
564a182259
commit
e358882f14
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user