Skip to content

Commit 232057e

Browse files
committed
Fix memory leak when deleting client instance.
Delete the disconnect timer when the client destructor is called.
1 parent dd76368 commit 232057e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NimBLEClient.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ NimBLEClient::~NimBLEClient() {
9393
delete m_pClientCallbacks;
9494
}
9595

96+
ble_npl_callout_deinit(&m_dcTimer);
97+
9698
} // ~NimBLEClient
9799

98100

0 commit comments

Comments
 (0)