diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-22 03:19:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-22 03:19:02 +0300 |
commit | 20bbdf47fe60e4188c837b5f6041417bdf542b40 (patch) | |
tree | dc6c14ab6258d5fff410e04678f6542019d7e540 /src/gui/windowmanager.cpp | |
parent | e2864bf7fadbfc7a6ce6bbd5ef7a3645e1904b11 (diff) | |
download | manaplus-20bbdf47fe60e4188c837b5f6041417bdf542b40.tar.gz manaplus-20bbdf47fe60e4188c837b5f6041417bdf542b40.tar.bz2 manaplus-20bbdf47fe60e4188c837b5f6041417bdf542b40.tar.xz manaplus-20bbdf47fe60e4188c837b5f6041417bdf542b40.zip |
Clear icon pointer after icon was deleted in windowmanager.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 1 |
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; } |