aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/ThemeParser.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp
index 4cabf6ad2e..c809447cbd 100644
--- a/gui/ThemeParser.cpp
+++ b/gui/ThemeParser.cpp
@@ -365,10 +365,8 @@ bool ThemeParser::parserCallback_drawdata(ParserNode *node) {
if (_theme->addDrawData(node->values["id"], cached) == false)
return parserError("Error adding Draw Data set: Invalid DrawData name.");
- if (_defaultStepLocal) {
- delete _defaultStepLocal;
- _defaultStepLocal = 0;
- }
+ delete _defaultStepLocal;
+ _defaultStepLocal = 0;
return true;
}