From 7b93b0f763aa1c00af34ece7257c6d696818e809 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 3f84656..16dfe0d 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