diff options
author | Chris Robinson <[email protected]> | 2007-12-17 19:12:49 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-17 19:12:49 -0800 |
commit | 9ebf1c1431b18b174473c107b738199ad93860f2 (patch) | |
tree | eb1721d03be608e94023ce82a59032c76fa793a7 | |
parent | 879593242056b5ab6ec93a3dde057310907e43c7 (diff) |
Don't attempt to free null effects or filters
-rw-r--r-- | OpenAL32/alEffect.c | 2 | ||||
-rw-r--r-- | OpenAL32/alFilter.c | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index c5d3ae31..0167462f 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -103,7 +103,7 @@ AL_API ALvoid AL_APIENTRY alDeleteFilters(ALsizei n, ALuint *filters) for (i = 0; i < n; i++) { // Recheck that the filter is valid, because there could be duplicated names - if (alIsFilter(filters[i])) + if (filters[i] && alIsFilter(filters[i])) { ALfilter **list; |