diff options
author | Max Horn | 2008-03-27 11:06:29 +0000 |
---|---|---|
committer | Max Horn | 2008-03-27 11:06:29 +0000 |
commit | 9287ea8376b689359b7c10a4b4a8b14474c402b5 (patch) | |
tree | 1c3a619555836ff543c81bdb638c58684b087cab /gui | |
parent | 4d51eb5fb74b13a34a3807d0bdd5fdafb98388fa (diff) | |
download | scummvm-rg350-9287ea8376b689359b7c10a4b4a8b14474c402b5.tar.gz scummvm-rg350-9287ea8376b689359b7c10a4b4a8b14474c402b5.tar.bz2 scummvm-rg350-9287ea8376b689359b7c10a4b4a8b14474c402b5.zip |
Patch #1926787: small memory leak and cleanup
svn-id: r31261
Diffstat (limited to 'gui')
-rw-r--r-- | gui/newgui.cpp | 4 | ||||
-rw-r--r-- | gui/newgui.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 669d305ef1..5e034b726c 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -121,6 +121,10 @@ NewGui::NewGui() : _needRedraw(false), _themeChange = false; } +NewGui::~NewGui() { + delete _theme; +} + bool NewGui::loadNewTheme(const Common::String &style) { Common::String styleType; Common::ConfigFile cfg; diff --git a/gui/newgui.h b/gui/newgui.h index bfbe77cdc0..4cf082c877 100644 --- a/gui/newgui.h +++ b/gui/newgui.h @@ -66,6 +66,7 @@ class NewGui : public Common::Singleton<NewGui> { friend class Dialog; friend class Common::Singleton<SingletonBaseType>; NewGui(); + ~NewGui(); public: // Main entry for the GUI: this will start an event loop that keeps running |