Minor changes

This commit is contained in:
anschrammh 2019-05-08 10:55:15 +02:00
parent 57877050a0
commit 6182ee5a59
2 changed files with 5 additions and 2 deletions

View File

@ -73,7 +73,7 @@ public:
free(_parameter); free(_parameter);
//_parameter = NULL; Useless, just my c habits //_parameter = NULL; Useless, just my c habits
delete _value; delete _value;
//_value = NULL; //Useless, just my c habits //_value = NULL; //Useless, just my c habits
} }
boolean add(const char *parameter, T *value) boolean add(const char *parameter, T *value)
@ -116,6 +116,7 @@ public:
{ {
toDelete = cursor->_next; toDelete = cursor->_next;
cursor->_next = cursor->_next->_next; cursor->_next = cursor->_next->_next;
delete toDelete; delete toDelete;
return true; return true;
} }
@ -144,6 +145,7 @@ public:
{ {
toDelete = cursor->_next; toDelete = cursor->_next;
cursor->_next = cursor->_next->_next; cursor->_next = cursor->_next->_next;
delete toDelete; delete toDelete;
return true; return true;
} }
@ -222,7 +224,7 @@ public:
{ {
toDelete = cursor; toDelete = cursor;
cursor = cursor->_next; cursor = cursor->_next;
delete toDelete; delete toDelete;
} }
_head = this; _head = this;

View File

@ -6,6 +6,7 @@
#include "tasks.h" #include "tasks.h"
#include "CFGDictionary.h" #include "CFGDictionary.h"
#include "CFGParameterValue.h" #include "CFGParameterValue.h"
#include "TCPServer.h"
#define DEBUG #define DEBUG
SAB sab; SAB sab;