aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 5ff7a91c..08944700 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -402,26 +402,6 @@ static ALvoid InitContext(ALCcontext *pContext)
*/
static ALCvoid ExitContext(ALCcontext *pContext)
{
- unsigned int i;
- ALsource *ALSource;
- ALsource *ALTempSource;
-
-#ifdef _DEBUG
- if (pContext->SourceCount>0)
- AL_PRINT("alcDestroyContext() %d Source(s) NOT deleted\n", pContext->SourceCount);
-#endif
-
- // Free all the Sources still remaining
- ALSource = pContext->Source;
- for (i = 0; i < pContext->SourceCount; i++)
- {
- ALTempSource = ALSource->next;
- ALTHUNK_REMOVEENTRY(ALSource->source);
- memset(ALSource, 0, sizeof(ALsource));
- free(ALSource);
- ALSource = ALTempSource;
- }
-
//Invalidate context
pContext->LastError = AL_NO_ERROR;
pContext->InUse = AL_FALSE;