Clarify implicit destruction warnings
This commit is contained in:
parent
3a8c543f8b
commit
93c0f61050
@ -1279,7 +1279,12 @@ ALCAPI ALCboolean ALCAPIENTRY alcCloseDevice(ALCdevice *pDevice)
|
||||
ProcessContext(NULL);
|
||||
|
||||
if(pDevice->Context)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
AL_PRINT("alcCloseDevice(): destroying 1 Context\n");
|
||||
#endif
|
||||
alcDestroyContext(pDevice->Context);
|
||||
}
|
||||
ALCdevice_ClosePlayback(pDevice);
|
||||
|
||||
//Release device structure
|
||||
@ -1298,8 +1303,8 @@ ALCAPI ALCboolean ALCAPIENTRY alcCloseDevice(ALCdevice *pDevice)
|
||||
ALCvoid ReleaseALC(ALCvoid)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if(g_ulContextCount > 0)
|
||||
AL_PRINT("exit() %u device(s) and %u context(s) NOT deleted\n", g_ulDeviceCount, g_ulContextCount);
|
||||
if(g_ulDeviceCount > 0)
|
||||
AL_PRINT("exit(): closing %u Device%s\n", g_ulDeviceCount, (g_ulDeviceCount>1)?"s":"");
|
||||
#endif
|
||||
|
||||
while(g_pDeviceList)
|
||||
|
@ -522,7 +522,7 @@ ALvoid ReleaseALAuxiliaryEffectSlots(ALCcontext *Context)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if(Context->AuxiliaryEffectSlotCount > 0)
|
||||
AL_PRINT("alcDestroyContext(): %d AuxiliaryEffectSlot(s) NOT deleted\n", Context->AuxiliaryEffectSlotCount);
|
||||
AL_PRINT("alcDestroyContext(): deleting %d AuxiliaryEffectSlot(s)\n", Context->AuxiliaryEffectSlotCount);
|
||||
#endif
|
||||
|
||||
while(Context->AuxiliaryEffectSlot)
|
||||
|
@ -1090,7 +1090,7 @@ ALvoid ReleaseALBuffers(ALvoid)
|
||||
|
||||
#ifdef _DEBUG
|
||||
if(g_uiBufferCount > 0)
|
||||
AL_PRINT("exit() %d Buffer(s) NOT deleted\n", g_uiBufferCount);
|
||||
AL_PRINT("exit(): deleting %d Buffer(s)\n", g_uiBufferCount);
|
||||
#endif
|
||||
|
||||
ALBuffer = g_pBuffers;
|
||||
|
@ -590,7 +590,7 @@ ALvoid ReleaseALEffects(ALvoid)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if(g_EffectCount > 0)
|
||||
AL_PRINT("exit() %d Effect(s) NOT deleted\n", g_EffectCount);
|
||||
AL_PRINT("exit(): deleting %d Effect(s)\n", g_EffectCount);
|
||||
#endif
|
||||
|
||||
while(g_EffectList)
|
||||
|
@ -399,7 +399,7 @@ ALvoid ReleaseALFilters(ALvoid)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if(g_FilterCount > 0)
|
||||
AL_PRINT("exit() %d Filter(s) NOT deleted\n", g_FilterCount);
|
||||
AL_PRINT("exit(): deleting %d Filter(s)\n", g_FilterCount);
|
||||
#endif
|
||||
|
||||
while(g_FilterList)
|
||||
|
@ -2290,7 +2290,7 @@ ALvoid ReleaseALSources(ALCcontext *Context)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if(Context->SourceCount > 0)
|
||||
AL_PRINT("alcDestroyContext(): %d Source(s) NOT deleted\n", Context->SourceCount);
|
||||
AL_PRINT("alcDestroyContext(): deleting %d Source(s)\n", Context->SourceCount);
|
||||
#endif
|
||||
|
||||
while(Context->Source)
|
||||
|
Loading…
x
Reference in New Issue
Block a user