diff options
| author | 2015-04-08 21:34:02 +0200 | |
|---|---|---|
| committer | 2015-04-08 21:34:02 +0200 | |
| commit | 5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b (patch) | |
| tree | 0d8d654046e18ad90a7a06e00e0e56c375a230fd /node/countexecutenode.cpp | |
| parent | 9192ba51a362715061cce1104b5543f7e93bf70f (diff) | |
| download | OneRoll-5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b.tar.gz OneRoll-5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b.zip | |
-remove memory leaks
-delete created objects
Diffstat (limited to 'node/countexecutenode.cpp')
| -rw-r--r-- | node/countexecutenode.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/node/countexecutenode.cpp b/node/countexecutenode.cpp index 281fc80..1050efc 100644 --- a/node/countexecutenode.cpp +++ b/node/countexecutenode.cpp @@ -4,7 +4,7 @@ CountExecuteNode::CountExecuteNode() - : m_scalarResult(new ScalarResult()) + : m_scalarResult(new ScalarResult()),m_validator(NULL) { m_result = m_scalarResult; } @@ -12,6 +12,13 @@ void CountExecuteNode::setValidator(Validator* validator) { m_validator = validator; } +CountExecuteNode::~CountExecuteNode() +{ + if(NULL!=m_validator) + { + delete m_validator; + } +} void CountExecuteNode::run(ExecutionNode *previous) { |