Set m_taskBarIcon to NULL after deleted

This commit is contained in:
Simon Rozman 2018-09-25 12:00:04 +02:00
parent e0e8401482
commit 39708ad4cb

View File

@ -125,6 +125,7 @@ wxZRColaFrame::wxZRColaFrame() :
} else { } else {
// Taskbar icon creation failed. Not the end of the world. No taskbar icon then. // Taskbar icon creation failed. Not the end of the world. No taskbar icon then.
delete m_taskBarIcon; delete m_taskBarIcon;
m_taskBarIcon = NULL;
} }
wxPersistenceManager &persist_mgr = wxPersistenceManager::Get(); wxPersistenceManager &persist_mgr = wxPersistenceManager::Get();