mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
Fix regression in networking memory cleanup in idLobby
This commit is contained in:
parent
ab663a769f
commit
9511a529af
2 changed files with 15 additions and 9 deletions
|
@ -118,6 +118,20 @@ idLobby::idLobby()
|
|||
connectIsFromInvite = false;
|
||||
}
|
||||
|
||||
/*
|
||||
========================
|
||||
idLobby::~idLobby
|
||||
========================
|
||||
*/
|
||||
idLobby::~idLobby()
|
||||
{
|
||||
// SRS - cleanup any allocations made for multiplayer networking support
|
||||
Mem_Free( objMemory );
|
||||
objMemory = NULL;
|
||||
Mem_Free( lzwData );
|
||||
lzwData = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
========================
|
||||
idLobby::Initialize
|
||||
|
@ -330,15 +344,6 @@ void idLobby::Shutdown( bool retainMigrationInfo, bool skipGoodbye )
|
|||
}
|
||||
}
|
||||
|
||||
// SRS - cleanup any allocations made for multiplayer networking support
|
||||
if( objMemory )
|
||||
{
|
||||
Mem_Free( objMemory );
|
||||
objMemory = NULL;
|
||||
Mem_Free( lzwData );
|
||||
lzwData = NULL;
|
||||
}
|
||||
|
||||
state = STATE_IDLE;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ class idLobby : public idLobbyBase
|
|||
{
|
||||
public:
|
||||
idLobby();
|
||||
~idLobby();
|
||||
|
||||
enum lobbyType_t
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue