From 9ebf1c1431b18b174473c107b738199ad93860f2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 17 Dec 2007 19:12:49 -0800 Subject: Don't attempt to free null effects or filters --- OpenAL32/alFilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32/alFilter.c') 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; -- cgit v1.2.3