Skip to content

Commit 7b93b0f

Browse files
committed
Fix memory leak when deleting client instance.
1 parent 11e705f commit 7b93b0f

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
@@ -94,6 +94,8 @@ NimBLEClient::~NimBLEClient() {
9494
delete m_pClientCallbacks;
9595
}
9696

97+
ble_npl_callout_deinit(&m_dcTimer);
98+
9799
} // ~NimBLEClient
98100

99101

0 commit comments

Comments
 (0)