From 6182ee5a59f7899470146469ce946c13d24ddf32 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Wed, 8 May 2019 10:55:15 +0200 Subject: [PATCH] Minor changes --- src/app/Dictionary.h | 6 ++++-- src/app/app.ino | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/Dictionary.h b/src/app/Dictionary.h index 0eb07ed..b9d2055 100644 --- a/src/app/Dictionary.h +++ b/src/app/Dictionary.h @@ -73,7 +73,7 @@ public: free(_parameter); //_parameter = NULL; Useless, just my c habits delete _value; - //_value = NULL; //Useless, just my c habits + //_value = NULL; //Useless, just my c habits } boolean add(const char *parameter, T *value) @@ -116,6 +116,7 @@ public: { toDelete = cursor->_next; cursor->_next = cursor->_next->_next; + delete toDelete; return true; } @@ -144,6 +145,7 @@ public: { toDelete = cursor->_next; cursor->_next = cursor->_next->_next; + delete toDelete; return true; } @@ -222,7 +224,7 @@ public: { toDelete = cursor; cursor = cursor->_next; - + delete toDelete; } _head = this; diff --git a/src/app/app.ino b/src/app/app.ino index e05817d..9ed0ad3 100644 --- a/src/app/app.ino +++ b/src/app/app.ino @@ -6,6 +6,7 @@ #include "tasks.h" #include "CFGDictionary.h" #include "CFGParameterValue.h" +#include "TCPServer.h" #define DEBUG SAB sab;