From c27948a7ee9613e174015daeac1c927a38a09ed9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 27 Aug 2009 19:01:12 -0700 Subject: [PATCH] Don't free a NULL handle --- Alc/dsound.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.11.4.GIT