mbed Connector Interface simplification API on top of mbed-client

Fork of mbedConnectorInterfaceV3 by Doug Anson

NOTE:

This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!

Revision:
63:fc30c31a4d75
Parent:
61:d02cd5e2bb26
Child:
64:f6e3ecaa8c3a
--- a/source/mbedEndpointNetwork.cpp	Wed Aug 10 02:24:05 2016 +0000
+++ b/source/mbedEndpointNetwork.cpp	Mon Aug 22 16:10:59 2016 +0000
@@ -75,6 +75,12 @@
 			logger.log("mbedEndpointNetwork(%s): shutdown requested. De-registering the endpoint...",NETWORK_TYPE);
 			ep->de_register_endpoint();
 		}
+		
+		// Clean up
+		if (ep != NULL) {
+			delete ep;
+			_endpoint_instance = NULL;
+		}
 	}
 	
 	// ready to shutdown...