From 39708ad4cb55ddc471fdb31b823f94bbdf3a279c Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 25 Sep 2018 12:00:04 +0200 Subject: [PATCH] Set m_taskBarIcon to NULL after deleted --- ZRCola/zrcolafrm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ZRCola/zrcolafrm.cpp b/ZRCola/zrcolafrm.cpp index 6ad828d..f397fd3 100644 --- a/ZRCola/zrcolafrm.cpp +++ b/ZRCola/zrcolafrm.cpp @@ -125,6 +125,7 @@ wxZRColaFrame::wxZRColaFrame() : } else { // Taskbar icon creation failed. Not the end of the world. No taskbar icon then. delete m_taskBarIcon; + m_taskBarIcon = NULL; } wxPersistenceManager &persist_mgr = wxPersistenceManager::Get();