mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 16:54:29 +00:00
Don't increase server library reference counter, free it pfnCheckGameDll
This commit is contained in:
parent
8704c07e4b
commit
362217935f
@ -884,6 +884,7 @@ int pfnCheckGameDll( void )
|
|||||||
COM_ResetLibraryError();
|
COM_ResetLibraryError();
|
||||||
if(( hInst = COM_LoadLibrary( SI.gamedll, true, false )) != NULL )
|
if(( hInst = COM_LoadLibrary( SI.gamedll, true, false )) != NULL )
|
||||||
{
|
{
|
||||||
|
COM_FreeLibrary( hInst ); // don't increase linker's reference counter
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
MsgDev( D_WARN, "Could not load server library:\n%s", COM_GetLibraryError() );
|
MsgDev( D_WARN, "Could not load server library:\n%s", COM_GetLibraryError() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user