forked from h2zero/esp-nimble-cpp
Bugfixes + add new NimBLEUUID constructor.
This commit is contained in:
@@ -74,7 +74,7 @@ NimBLEClient::~NimBLEClient() {
|
||||
// Before we are finished with the client, we must release resources.
|
||||
clearServices();
|
||||
|
||||
if(m_deleteCallbacks) {
|
||||
if(m_deleteCallbacks && m_pClientCallbacks != &defaultCallbacks) {
|
||||
delete m_pClientCallbacks;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user