From fec1fec3733492df49c0cc9f79f19aab7ff849f7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 1 Jul 2014 22:52:29 -0700 Subject: Check that a fontsound is NOT null before deleting it --- OpenAL32/alFontsound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32/alFontsound.c') diff --git a/OpenAL32/alFontsound.c b/OpenAL32/alFontsound.c index 8e28355a..670fddad 100644 --- a/OpenAL32/alFontsound.c +++ b/OpenAL32/alFontsound.c @@ -78,7 +78,7 @@ AL_API ALvoid AL_APIENTRY alDeleteFontsoundsSOFT(ALsizei n, const ALuint *ids) for(i = 0;i < n;i++) { - if((inst=LookupFontsound(device, ids[i])) == NULL) + if((inst=LookupFontsound(device, ids[i])) != NULL) DeleteFontsound(device, inst); } -- cgit v1.2.3