mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-16 13:56:06 +02:00
LazDebuggerFp: fix mem leaks in logging code.
git-svn-id: trunk@59511 -
This commit is contained in:
parent
3018fb2880
commit
e31e672112
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user