Don't increase server library reference counter, free it pfnCheckGameDll

This commit is contained in:
Alibek Omarov 2018-04-22 13:01:06 +03:00
parent 8704c07e4b
commit 362217935f

View File

@ -884,6 +884,7 @@ int pfnCheckGameDll( void )
COM_ResetLibraryError();
if(( hInst = COM_LoadLibrary( SI.gamedll, true, false )) != NULL )
{
COM_FreeLibrary( hInst ); // don't increase linker's reference counter
return true;
}
MsgDev( D_WARN, "Could not load server library:\n%s", COM_GetLibraryError() );