aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-16 13:27:15 -0800
committerChris Robinson <[email protected]>2008-01-16 13:27:15 -0800
commit8ad16145f69d36d2de6b9d0a032479ca71ff4a67 (patch)
tree338063d9074dce5dd7da0aef589465e26d34b84b /Alc
parentbb7b18d4e10b1f1e4d76847f58e0bf778584dc9e (diff)
Make sure sources are deleted with the context
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 5635c87f..2727aa33 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1013,6 +1013,7 @@ ALCAPI ALCvoid ALCAPIENTRY alcDestroyContext(ALCcontext *context)
// Lock context
SuspendContext(context);
+ ReleaseALSources(context);
ReleaseALAuxiliaryEffectSlots(context);
context->Device->Context = NULL;