summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-13 14:45:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-13 14:45:13 +0300
commit5b93d3755001f2770f0f72cb12074790025c6249 (patch)
tree2677e47bfe504bfd5c02380644a6f49c165fc26b /src
parent24f4c6de03a3a65df1ad9100e912e968fe9b8b18 (diff)
downloadmanaplus-5b93d3755001f2770f0f72cb12074790025c6249.tar.gz
manaplus-5b93d3755001f2770f0f72cb12074790025c6249.tar.bz2
manaplus-5b93d3755001f2770f0f72cb12074790025c6249.tar.xz
manaplus-5b93d3755001f2770f0f72cb12074790025c6249.zip
Add some missing cleanup on exit.
Diffstat (limited to 'src')
-rw-r--r--src/gui/setup_other.cpp2
-rw-r--r--src/gui/setup_theme.cpp5
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/setup_other.cpp b/src/gui/setup_other.cpp
index 39df3ca13..f26378630 100644
--- a/src/gui/setup_other.cpp
+++ b/src/gui/setup_other.cpp
@@ -379,6 +379,8 @@ Setup_Other::~Setup_Other()
mProxyTypeList = nullptr;
delete mShortcutsList;
mShortcutsList = nullptr;
+ delete mDensityList;
+ mDensityList = nullptr;
}
void Setup_Other::apply()
diff --git a/src/gui/setup_theme.cpp b/src/gui/setup_theme.cpp
index f46202eb7..f0ae897d2 100644
--- a/src/gui/setup_theme.cpp
+++ b/src/gui/setup_theme.cpp
@@ -384,10 +384,15 @@ Setup_Theme::~Setup_Theme()
delete mLangListModel;
mLangListModel = nullptr;
+
+ delete mInfo;
+ mInfo = nullptr;
+
}
void Setup_Theme::updateInfo()
{
+ delete mInfo;
mInfo = Theme::loadInfo(mTheme);
if (mInfo)
{