From 20bbdf47fe60e4188c837b5f6041417bdf542b40 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 22 Mar 2017 03:19:02 +0300 Subject: Clear icon pointer after icon was deleted in windowmanager. --- src/gui/windowmanager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index 4f51ef525..828e59c65 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -439,4 +439,5 @@ void WindowManager::updateScreenKeyboard(const int height) void WindowManager::deleteIcon() { MSDL_FreeSurface(mIcon); + mIcon = nullptr; } -- cgit v1.2.3-70-g09d2