mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
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!
Diff: source/OptionsBuilder.cpp
- Revision:
- 38:bb6d2be4d54c
- Parent:
- 34:a10d65907549
- Child:
- 49:c603a22495bb
--- a/source/OptionsBuilder.cpp Tue Jun 14 19:56:47 2016 +0000 +++ b/source/OptionsBuilder.cpp Tue Jun 14 20:18:30 2016 +0000 @@ -76,12 +76,8 @@ // Destructor OptionsBuilder::~OptionsBuilder() { - if (this->m_device_resources_object != NULL) { - delete this->m_device_resources_object; - } - if (this->m_firmware_resources_object != NULL) { - delete this->m_firmware_resources_object; - } + this->m_device_resources_object = NULL; + this->m_firmware_resources_object = NULL; this->m_static_resources.clear(); this->m_dynamic_resources.clear(); this->m_resource_observers.clear();