From 5b93d3755001f2770f0f72cb12074790025c6249 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Jun 2013 14:45:13 +0300 Subject: Add some missing cleanup on exit. --- src/gui/setup_theme.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/setup_theme.cpp') 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) { -- cgit v1.2.3-70-g09d2