From 9287ea8376b689359b7c10a4b4a8b14474c402b5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 27 Mar 2008 11:06:29 +0000 Subject: Patch #1926787: small memory leak and cleanup svn-id: r31261 --- gui/newgui.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui/newgui.cpp') 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; -- cgit v1.2.3