Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
276:851554207c77
Parent:
274:e2caebc7c65e
--- a/src/OutputTask/OutputTask.cpp	Wed Oct 26 20:10:37 2016 +0000
+++ b/src/OutputTask/OutputTask.cpp	Wed Oct 26 20:31:39 2016 +0000
@@ -260,6 +260,7 @@
     
     cJSON * root = cJSON_Parse(dataBuf);
     std::string id = cJSON_GetObjectItem(root,"id")->valuestring;
+    cJSON_Delete(root);
     
     vector<Control> v;
     outputMap[id] = v;
@@ -436,6 +437,7 @@
             //parse( json_value, scratchBuf );
             std::string id = cJSON_GetObjectItem(root,"id")->valuestring;
             printf("\r   output %s loaded\n", i->name);
+            cJSON_Delete(root);
 
             // emplace the empty control vector into the output map
             vector<Control> v;