aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alEffect.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-17 19:12:49 -0800
committerChris Robinson <[email protected]>2007-12-17 19:12:49 -0800
commit9ebf1c1431b18b174473c107b738199ad93860f2 (patch)
treeeb1721d03be608e94023ce82a59032c76fa793a7 /OpenAL32/alEffect.c
parent879593242056b5ab6ec93a3dde057310907e43c7 (diff)
Don't attempt to free null effects or filters
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r--OpenAL32/alEffect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index 66ba710a..1faca089 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -103,7 +103,7 @@ AL_API ALvoid AL_APIENTRY alDeleteEffects(ALsizei n, ALuint *effects)
for (i = 0; i < n; i++)
{
// Recheck that the effect is valid, because there could be duplicated names
- if (alIsEffect(effects[i]))
+ if (effects[i] && alIsEffect(effects[i]))
{
ALeffect **list;