LazDebuggerFp: fix mem leaks in logging code.

git-svn-id: trunk@59511 -
This commit is contained in:
martin 2018-11-11 18:27:22 +00:00
parent 3018fb2880
commit e31e672112

View File

@ -1485,7 +1485,7 @@ begin
case AMessage.SyncLogLevel of
dllDebug: DebugLn(AMessage.SyncLogMessage);
dllInfo: ShowMessage(AMessage.SyncLogMessage);
dllError: raise exception.Create(AMessage.SyncLogMessage);
dllError: MessageDlg(AMessage.SyncLogMessage, mtError, [mbOK], 0);
end; {case}
AMessage.Free;
end;
@ -2006,6 +2006,7 @@ destructor TFpDebugDebugger.Destroy;
begin
if assigned(FFpDebugThread) then
FreeDebugThread;
DoLog();
FreeAndNil(FDbgController);
FreeAndNil(FPrettyPrinter);
FreeAndNil(FWatchEvalList);