aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/executionnode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-04-08 21:34:02 +0200
committerRenaud G <renaud@rolisteam.org>2015-04-08 21:34:02 +0200
commit5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b (patch)
tree0d8d654046e18ad90a7a06e00e0e56c375a230fd /node/executionnode.cpp
parent9192ba51a362715061cce1104b5543f7e93bf70f (diff)
downloadOneRoll-5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b.tar.gz
OneRoll-5cfe48265ebad0ffa0a980dbc2d131fceeecdf3b.zip
-remove memory leaks
-delete created objects
Diffstat (limited to 'node/executionnode.cpp')
-rw-r--r--node/executionnode.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/node/executionnode.cpp b/node/executionnode.cpp
index 8bcd6e4..343e8d9 100644
--- a/node/executionnode.cpp
+++ b/node/executionnode.cpp
@@ -8,6 +8,16 @@ ExecutionNode::ExecutionNode()
ExecutionNode::~ExecutionNode()
{
+ if(NULL!=m_result)
+ {
+ delete m_result;
+ m_result = NULL;
+ }
+ if(NULL!=m_nextNode)
+ {
+ delete m_nextNode;
+ m_nextNode = NULL;
+ }
}
Result* ExecutionNode::getResult()