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);
|
ProcessContext(NULL);
|
||||||
|
|
||||||
if(pDevice->Context)
|
if(pDevice->Context)
|
||||||
|
{
|
||||||
|
#ifdef _DEBUG
|
||||||
|
AL_PRINT("alcCloseDevice(): destroying 1 Context\n");
|
||||||
|
#endif
|
||||||
alcDestroyContext(pDevice->Context);
|
alcDestroyContext(pDevice->Context);
|
||||||
|
}
|
||||||
ALCdevice_ClosePlayback(pDevice);
|
ALCdevice_ClosePlayback(pDevice);
|
||||||
|
|
||||||
//Release device structure
|
//Release device structure
|
||||||
@ -1298,8 +1303,8 @@ ALCAPI ALCboolean ALCAPIENTRY alcCloseDevice(ALCdevice *pDevice)
|
|||||||
ALCvoid ReleaseALC(ALCvoid)
|
ALCvoid ReleaseALC(ALCvoid)
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
if(g_ulContextCount > 0)
|
if(g_ulDeviceCount > 0)
|
||||||
AL_PRINT("exit() %u device(s) and %u context(s) NOT deleted\n", g_ulDeviceCount, g_ulContextCount);
|
AL_PRINT("exit(): closing %u Device%s\n", g_ulDeviceCount, (g_ulDeviceCount>1)?"s":"");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while(g_pDeviceList)
|
while(g_pDeviceList)
|
||||||
|
@ -522,7 +522,7 @@ ALvoid ReleaseALAuxiliaryEffectSlots(ALCcontext *Context)
|
|||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
if(Context->AuxiliaryEffectSlotCount > 0)
|
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
|
#endif
|
||||||
|
|
||||||
while(Context->AuxiliaryEffectSlot)
|
while(Context->AuxiliaryEffectSlot)
|
||||||
|
@ -1090,7 +1090,7 @@ ALvoid ReleaseALBuffers(ALvoid)
|
|||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
if(g_uiBufferCount > 0)
|
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
|
#endif
|
||||||
|
|
||||||
ALBuffer = g_pBuffers;
|
ALBuffer = g_pBuffers;
|
||||||
|
@ -590,7 +590,7 @@ ALvoid ReleaseALEffects(ALvoid)
|
|||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
if(g_EffectCount > 0)
|
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
|
#endif
|
||||||
|
|
||||||
while(g_EffectList)
|
while(g_EffectList)
|
||||||
|
@ -399,7 +399,7 @@ ALvoid ReleaseALFilters(ALvoid)
|
|||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
if(g_FilterCount > 0)
|
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
|
#endif
|
||||||
|
|
||||||
while(g_FilterList)
|
while(g_FilterList)
|
||||||
|
@ -2290,7 +2290,7 @@ ALvoid ReleaseALSources(ALCcontext *Context)
|
|||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
if(Context->SourceCount > 0)
|
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
|
#endif
|
||||||
|
|
||||||
while(Context->Source)
|
while(Context->Source)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user