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:
26:791d22d43cb4
Parent:
21:cfdaee0a2b50
Child:
28:52b7ca6aacd6
--- a/Light.cpp	Thu Feb 27 04:05:31 2014 +0000
+++ b/Light.cpp	Thu Feb 27 06:04:52 2014 +0000
@@ -40,6 +40,8 @@
  // 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;
  }
  
  // get the resource factory