Clear all widgets pointer when unloading track screen
This fixed crash after changing resolution and then spectate the game, which m_timer is previous value
This commit is contained in:
parent
033933d3a2
commit
48f4088894
@ -206,6 +206,11 @@ void TracksScreen::unloaded()
|
|||||||
{
|
{
|
||||||
delete m_track_icons;
|
delete m_track_icons;
|
||||||
m_track_icons = NULL;
|
m_track_icons = NULL;
|
||||||
|
m_timer = NULL;
|
||||||
|
m_vote_list = NULL;
|
||||||
|
m_selected_track = NULL;
|
||||||
|
m_laps = NULL;
|
||||||
|
m_reversed = NULL;
|
||||||
} // unloaded
|
} // unloaded
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user