8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb21f0 commit 89aac0aCopy full SHA for 89aac0a
cpp_utils/BLERemoteCharacteristic.cpp
@@ -44,6 +44,7 @@ BLERemoteCharacteristic::BLERemoteCharacteristic(
44
m_charProp = charProp;
45
m_pRemoteService = pRemoteService;
46
m_notifyCallback = nullptr;
47
+ m_rawData = nullptr;
48
49
retrieveDescriptors(); // Get the descriptors for this characteristic
50
ESP_LOGD(LOG_TAG, "<< BLERemoteCharacteristic");
@@ -54,6 +55,7 @@ BLERemoteCharacteristic::BLERemoteCharacteristic(
54
55
*@brief Destructor.
56
*/
57
BLERemoteCharacteristic::~BLERemoteCharacteristic() {
58
+ if(m_rawData != nullptr) free(m_rawData);
59
removeDescriptors(); // Release resources for any descriptor information we may have allocated.
60
} // ~BLERemoteCharacteristic
61
0 commit comments