diff options
author | Chris Robinson <[email protected]> | 2008-01-18 00:56:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-18 00:56:01 -0800 |
commit | 1b9d740244de7b217c7d3382a7dc3f9bf4c7f403 (patch) | |
tree | 75a6cb06e2c7aa6b920542e7ac06568c133e742a /Alc/ALc.c | |
parent | 497ada9c77b5a8434a4fb09ab00251ee680b5340 (diff) |
Remove duplicated source freeing code
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -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; |