engine: server: fix server dll leak when no map was loaded

This commit is contained in:
Alibek Omarov 2022-06-12 03:07:09 +03:00
parent acffeb1dad
commit 5524aaae1e

View File

@ -1091,6 +1091,8 @@ void SV_Shutdown( const char *finalmsg )
// drop the client if want to load a new map // drop the client if want to load a new map
if( CL_IsPlaybackDemo( )) if( CL_IsPlaybackDemo( ))
CL_Drop(); CL_Drop();
SV_UnloadProgs ();
return; return;
} }