Fix debugger's memory leak when project closes itself

(cherry picked from commit ddb94b9e9d)
This commit is contained in:
ydeltastar 2025-03-12 16:46:23 -03:00 committed by Rémi Verschelde
parent 2f90dfef65
commit be074cc17b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1032,6 +1032,7 @@ void DebugAdapterProtocol::on_debug_paused() {
void DebugAdapterProtocol::on_debug_stopped() { void DebugAdapterProtocol::on_debug_stopped() {
notify_exited(); notify_exited();
notify_terminated(); notify_terminated();
reset_ids();
} }
void DebugAdapterProtocol::on_debug_output(const String &p_message, int p_type) { void DebugAdapterProtocol::on_debug_output(const String &p_message, int p_type) {