fix crash on ALSA SW fallback

This commit is contained in:
Glenn Maynard
2003-11-04 06:40:17 +00:00
parent e14227c0d4
commit 62e9a16bc6
3 changed files with 14 additions and 6 deletions
+3 -4
View File
@@ -43,15 +43,14 @@ CString LoadALSA()
return "";
error:
UnloadALSA();
if( Handle )
dlclose( Handle );
Handle = NULL;
return error;
}
void UnloadALSA()
{
dlclose( Handle );
if( Handle )
dlclose( Handle );
Handle = NULL;
#define FUNC(ret, name, proto) d##name = NULL;
#include "ALSA9Functions.h"
#undef FUNC