aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alFontsound.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-07-01 22:52:29 -0700
committerChris Robinson <[email protected]>2014-07-01 22:52:29 -0700
commitfec1fec3733492df49c0cc9f79f19aab7ff849f7 (patch)
treebd2ef2e712d7deb09f7c10be7c905878d6c1bb6a /OpenAL32/alFontsound.c
parent347d8f94e83d02d34cd5932bcf331d7b3aa5d73e (diff)
Check that a fontsound is NOT null before deleting it
Diffstat (limited to 'OpenAL32/alFontsound.c')
-rw-r--r--OpenAL32/alFontsound.c2
1 files changed, 1 insertions, 1 deletions
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);
}