Don't attempt to free null effects or filters

This commit is contained in:
Chris Robinson
2007-12-17 19:12:49 -08:00
parent 8795932420
commit 9ebf1c1431
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;