From e60fbf4f992b9033d8d5ece4a7d642a43f8064e4 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Fri, 17 May 2024 19:23:39 +0200 Subject: [PATCH] clean terminate --- main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.cpp b/main.cpp index 6d72d36..5db6754 100644 --- a/main.cpp +++ b/main.cpp @@ -705,8 +705,13 @@ int main(int argc, char *argv[]) cnsl->stop_thread(); + auto dc11_devices = *b->getDC11()->get_comm_interfaces(); // TODO fix RAII + delete b; + for(auto & c: dc11_devices) + delete c; + delete cnsl; return 0;