aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-07-22 14:29:27 -0700
committerChris Robinson <[email protected]>2008-07-22 14:29:27 -0700
commit93c0f61050dbe15e692e567a208bd0c60d60b4dd (patch)
tree954feceb29f33dc5b135810c2a5f3a1b6e810c85 /Alc
parent3a8c543f8bb814216fd3f68e4116e63b6d46215f (diff)
Clarify implicit destruction warnings
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 15cdcfb7..ed9c4167 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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)