Merge pull request #260 from alliedmodders/bug-6303
Fix crash when creating and destroying a TopMenu before map start (bug 6303, r=asherkin).
This commit is contained in:
commit
fca927884b
@ -80,12 +80,15 @@ TopMenu::~TopMenu()
|
||||
delete m_Config.cats[i];
|
||||
}
|
||||
|
||||
/* Sweep players */
|
||||
for (size_t i = 0; i <= (size_t)m_max_clients; i++)
|
||||
if (m_clients != NULL)
|
||||
{
|
||||
TearDownClient(&m_clients[i]);
|
||||
/* Sweep players */
|
||||
for (size_t i = 0; i <= (size_t)m_max_clients; i++)
|
||||
{
|
||||
TearDownClient(&m_clients[i]);
|
||||
}
|
||||
free(m_clients);
|
||||
}
|
||||
free(m_clients);
|
||||
}
|
||||
|
||||
unsigned int TopMenu::CalcMemUsage()
|
||||
|
Loading…
Reference in New Issue
Block a user