summaryrefslogtreecommitdiff
path: root/src/gui/windowmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-22 03:19:02 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-22 03:19:02 +0300
commit20bbdf47fe60e4188c837b5f6041417bdf542b40 (patch)
treedc6c14ab6258d5fff410e04678f6542019d7e540 /src/gui/windowmanager.cpp
parente2864bf7fadbfc7a6ce6bbd5ef7a3645e1904b11 (diff)
downloadmv-20bbdf47fe60e4188c837b5f6041417bdf542b40.tar.gz
mv-20bbdf47fe60e4188c837b5f6041417bdf542b40.tar.bz2
mv-20bbdf47fe60e4188c837b5f6041417bdf542b40.tar.xz
mv-20bbdf47fe60e4188c837b5f6041417bdf542b40.zip
Clear icon pointer after icon was deleted in windowmanager.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r--src/gui/windowmanager.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}