aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c9
-rw-r--r--OpenAL32/alAuxEffectSlot.c2
-rw-r--r--OpenAL32/alBuffer.c2
-rw-r--r--OpenAL32/alEffect.c2
-rw-r--r--OpenAL32/alFilter.c2
-rw-r--r--OpenAL32/alSource.c2
6 files changed, 12 insertions, 7 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)
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index 7f073435..23765cf6 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -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)
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 8934f878..15fe4184 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -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;
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index abdca3ea..1093efa8 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -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)
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index 2a0e6973..89acb414 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -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)
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 35caec8a..89212933 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -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)