summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}