From 6cda761f1377c1cb7edf24e4c92ab87139654f3b Mon Sep 17 00:00:00 2001 From: h2zero Date: Mon, 14 Feb 2022 21:14:14 -0700 Subject: [PATCH] Fix memory leak when deleting client instance. --- src/NimBLEClient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NimBLEClient.cpp b/src/NimBLEClient.cpp index 7b87ab3..9d931d0 100644 --- a/src/NimBLEClient.cpp +++ b/src/NimBLEClient.cpp @@ -94,6 +94,8 @@ NimBLEClient::~NimBLEClient() { delete m_pClientCallbacks; } + ble_npl_callout_deinit(&m_dcTimer); + } // ~NimBLEClient