aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/dsound.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-08-27 19:01:12 -0700
committerChris Robinson <[email protected]>2009-08-27 19:01:12 -0700
commitc27948a7ee9613e174015daeac1c927a38a09ed9 (patch)
tree273587a494e8631aef106a8817242908c57d8c02 /Alc/dsound.c
parent832dc8a5857ff492502f23f9604d1b3e27718e24 (diff)
Don't free a NULL handle
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r--Alc/dsound.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index 5ac1e530..e6df32da 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -522,7 +522,8 @@ void alcDSoundDeinit(void)
NumDevices = 0;
#ifdef _WIN32
- FreeLibrary(ds_handle);
+ if(ds_handle)
+ FreeLibrary(ds_handle);
ds_handle = NULL;
#endif
}