Don't attempt to free null effects or filters
This commit is contained in:
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user