This commit is contained in:
def 2014-12-19 17:47:11 +01:00
parent 87afb28a40
commit 8f72b2fdb6

View file

@ -1699,12 +1699,12 @@ void CSqlScore::SaveTeamThread(void *pUser)
pData->m_pSqlData->GameServer()->SendChatTarget(pData->m_ClientID, "ERROR: Unable to connect to SQL-Server");
}
((CGameControllerDDRace*)(pData->m_pSqlData->GameServer()->m_pController))->m_Teams.SetSaving(Team, false);
delete pData;
if(SavedTeam)
delete SavedTeam;
((CGameControllerDDRace*)(pData->m_pSqlData->GameServer()->m_pController))->m_Teams.SetSaving(Team, false);
lock_release(gs_SqlLock);
}