aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeParser.h
diff options
context:
space:
mode:
authorVicent Marti2008-08-09 14:15:34 +0000
committerVicent Marti2008-08-09 14:15:34 +0000
commitea69217a136210347689e9536d67e1dda883f45a (patch)
treef7a71dd6c9aa5fd1701006af67aa0b1da98e349a /gui/ThemeParser.h
parent01b8373d95c216ce8cbe29abcc98837d35046e37 (diff)
downloadscummvm-rg350-ea69217a136210347689e9536d67e1dda883f45a.tar.gz
scummvm-rg350-ea69217a136210347689e9536d67e1dda883f45a.tar.bz2
scummvm-rg350-ea69217a136210347689e9536d67e1dda883f45a.zip
Fixed 1.000.000 Valgrind warnings.
svn-id: r33711
Diffstat (limited to 'gui/ThemeParser.h')
-rw-r--r--gui/ThemeParser.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/ThemeParser.h b/gui/ThemeParser.h
index bae015cf25..78423652bc 100644
--- a/gui/ThemeParser.h
+++ b/gui/ThemeParser.h
@@ -312,10 +312,17 @@ class ThemeRenderer;
class ThemeParser : public XMLParser {
typedef void (VectorRenderer::*DrawingFunctionCallback)(const Common::Rect &, const DrawStep &);
-
+
public:
ThemeParser(GUI::ThemeRenderer *parent);
+ virtual ~ThemeParser() {
+ delete _defaultStepGlobal;
+ delete _defaultStepLocal;
+ _palette.clear();
+ _drawFunctions.clear();
+ }
+
bool getPaletteColor(const Common::String &name, int &r, int &g, int &b) {
if (!_palette.contains(name))
return false;