From a552e32a9aa878c342582b2b10eecb29eaa00582 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 14 Jan 2008 10:42:11 -0800 Subject: Destroy context if closing a device with one --- Alc/ALc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Alc/ALc.c b/Alc/ALc.c index 6a4e27df..c8d5f0bc 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1224,6 +1224,8 @@ ALCAPI ALCboolean ALCAPIENTRY alcCloseDevice(ALCdevice *pDevice) ProcessContext(NULL); + if(pDevice->Context) + alcDestroyContext(pDevice->Context); ALCdevice_ClosePlayback(pDevice); //Release device structure -- cgit v1.2.3