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 733efc9 commit bc6b62aCopy full SHA for bc6b62a
src/NimBLEService.cpp
@@ -121,6 +121,12 @@ bool NimBLEService::start() {
121
122
// Rebuild the service definition if the server attributes have changed.
123
if(getServer()->m_svcChanged && m_pSvcDef != nullptr) {
124
+ if(m_pSvcDef[0].characteristics) {
125
+ if(m_pSvcDef[0].characteristics[0].descriptors) {
126
+ delete(m_pSvcDef[0].characteristics[0].descriptors);
127
+ }
128
+ delete(m_pSvcDef[0].characteristics);
129
130
delete(m_pSvcDef);
131
m_pSvcDef = nullptr;
132
}
0 commit comments