* Fixed crash on delete after disconnect * Fixed memory leak when getting characteristics * Removed guard Co-authored-by: ushiboy <ushiboy.dev@gmail.com>
This commit is contained in:
parent
d964873840
commit
e831680a41
@ -60,6 +60,7 @@ BLEClient::~BLEClient() {
|
|||||||
delete myPair.second;
|
delete myPair.second;
|
||||||
}
|
}
|
||||||
m_servicesMap.clear();
|
m_servicesMap.clear();
|
||||||
|
m_servicesMapByInstID.clear();
|
||||||
} // ~BLEClient
|
} // ~BLEClient
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@ BLERemoteCharacteristic::BLERemoteCharacteristic(
|
|||||||
*/
|
*/
|
||||||
BLERemoteCharacteristic::~BLERemoteCharacteristic() {
|
BLERemoteCharacteristic::~BLERemoteCharacteristic() {
|
||||||
removeDescriptors(); // Release resources for any descriptor information we may have allocated.
|
removeDescriptors(); // Release resources for any descriptor information we may have allocated.
|
||||||
|
free(m_rawData);
|
||||||
} // ~BLERemoteCharacteristic
|
} // ~BLERemoteCharacteristic
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user