diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-28 22:45:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-29 00:18:57 +0300 |
commit | 3db999ff2d3324ffad6ba6a469ca224c8d864dc3 (patch) | |
tree | 78ecfd05c1267f7360e42876072ddb21efa1a096 /src/gui/windowmenu.cpp | |
parent | 57726c7324f165c70671fc5b05d6c0964f56b870 (diff) | |
download | mv-3db999ff2d3324ffad6ba6a469ca224c8d864dc3.tar.gz mv-3db999ff2d3324ffad6ba6a469ca224c8d864dc3.tar.bz2 mv-3db999ff2d3324ffad6ba6a469ca224c8d864dc3.tar.xz mv-3db999ff2d3324ffad6ba6a469ca224c8d864dc3.zip |
add some more missing checks.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r-- | src/gui/windowmenu.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index bc7e0f736..0e2cc5397 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -205,6 +205,13 @@ WindowMenu::~WindowMenu() } delete_all(mButtonTexts); mButtonTexts.clear(); + if (mSkin) + { + Theme *const theme = Theme::instance(); + if (theme) + theme->unload(mSkin); + mSkin = nullptr; + } } void WindowMenu::action(const gcn::ActionEvent &event) |