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 5c82533 commit ca9b705Copy full SHA for ca9b705
connectivity/FEATURE_BLE/include/ble/gatt/GattCharacteristic.h
@@ -1430,9 +1430,8 @@ class GattCharacteristic {
1430
GattCharacteristic& operator=(const GattCharacteristic &) = delete;
1431
1432
~GattCharacteristic() {
1433
- if(_implicit_cccd != nullptr) {
1434
delete _implicit_cccd;
1435
- }
+ _implicit_cccd = nullptr;
1436
}
1437
1438
public:
@@ -1821,7 +1820,7 @@ class GattCharacteristic {
1821
1820
* the constructor includes a CCCD this field is left as nullptr to
1822
* indicate the CCCD was explicitly created.
1823
*/
1824
- GattAttribute* _implicit_cccd;
+ GattAttribute* _implicit_cccd = nullptr;
1825
1826
/**
1827
* The registered callback handler for read authorization reply.
0 commit comments