diff options
author | Chris Robinson <[email protected]> | 2009-08-27 19:01:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-27 19:01:12 -0700 |
commit | c27948a7ee9613e174015daeac1c927a38a09ed9 (patch) | |
tree | 273587a494e8631aef106a8817242908c57d8c02 | |
parent | 832dc8a5857ff492502f23f9604d1b3e27718e24 (diff) |
Don't free a NULL handle
-rw-r--r-- | Alc/dsound.c | 3 |
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 } |