Bugfixes + add new NimBLEUUID constructor.

This commit is contained in:
h2zero
2020-05-03 13:50:49 -06:00
parent 725807b619
commit 1779a3f723
8 changed files with 42 additions and 35 deletions

View File

@@ -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;
}