From 7be4cc12a6b53078d9bcb0366565167d80c5b30e Mon Sep 17 00:00:00 2001 From: Zhang TingAn Date: Fri, 16 Aug 2024 10:58:14 +0800 Subject: [PATCH] fix: [debugger] crash when close ide memory release issue Log: as title --- src/plugins/debugger/dap/debugsession.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/debugger/dap/debugsession.cpp b/src/plugins/debugger/dap/debugsession.cpp index 2e0cf89e9..519474ab3 100644 --- a/src/plugins/debugger/dap/debugsession.cpp +++ b/src/plugins/debugger/dap/debugsession.cpp @@ -17,6 +17,7 @@ #include "dap/io.h" #include "dap/protocol.h" #include "dap/session.h" +#include "dap/dap.h" #include "dap/network.h" #include @@ -36,6 +37,7 @@ DebugSession::DebugSession(DebugModel *_model, QObject *parent) id(QUuid::createUuid().toString().toStdString()), model(_model) { + dap::initialize(); } DebugSession::~DebugSession() @@ -56,6 +58,7 @@ DebugSession::~DebugSession() } threads.clear(); + dap::terminate(); delete alertBox; }