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 8cc01bb commit 89bf89fCopy full SHA for 89bf89f
src/NimBLEService.cpp
@@ -113,6 +113,12 @@ bool NimBLEService::start() {
113
114
// Rebuild the service definition if the server attributes have changed.
115
if(getServer()->m_svcChanged && m_pSvcDef != nullptr) {
116
+ if(m_pSvcDef[0].characteristics) {
117
+ if(m_pSvcDef[0].characteristics[0].descriptors) {
118
+ delete(m_pSvcDef[0].characteristics[0].descriptors);
119
+ }
120
+ delete(m_pSvcDef[0].characteristics);
121
122
delete(m_pSvcDef);
123
m_pSvcDef = nullptr;
124
}
0 commit comments