Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
47:fa96ddc36f04
Parent:
33:339eb862a4c4
Child:
87:e9d77e9f9eae
--- a/Light.cpp	Sat Mar 01 16:10:08 2014 +0000
+++ b/Light.cpp	Sat Mar 01 17:01:46 2014 +0000
@@ -45,10 +45,10 @@
  
  // destructor
  Light::~Light() {   
-    //if (this->m_resources != NULL) delete this->m_resources;
-    //if (this->m_dimmer_action != NULL) delete this->m_dimmer_action;
-    //if (this->m_switch_action != NULL) delete this->m_switch_action;
-    //if (this->m_pl != NULL) delete this->m_pl;
+    if (this->m_resources != NULL) delete this->m_resources;
+    if (this->m_dimmer_action != NULL) delete this->m_dimmer_action;
+    if (this->m_switch_action != NULL) delete this->m_switch_action;
+    if (this->m_pl != NULL) delete this->m_pl;
  }
  
  // get the resource factory