Skip to content
Commit a6183b28 authored by Igor Kushnir's avatar Igor Kushnir
Browse files

MIDebugJob: don't leak the debug session if config is invalid

The constructor of a MI debug job creates a debug session. When the
configured launch executable or its arguments are invalid, MIDebugJob
doesn't call MIDebugSession::startDebugging() and finishes with an
error. The debug session is not destroyed and the Debug area remains
active in KDevelop then.

Calling MIDebugSession::stopDebugger() finishes the debug session and
lets DebugController destroy it. This function explicitly and correctly
handles stopping debugger when it is not started.

BUG: 369313
FIXED-IN: 5.11.230400
parent 73577df1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment