mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 11:48:31 +02:00
Fix mem leak from revision 58238 #cef14db081: "DebuggerIntf: Refactor, evaluate now takes a callback"
git-svn-id: trunk@58267 -
This commit is contained in:
parent
9602db0b8b
commit
899367e92f
@ -11059,8 +11059,10 @@ begin
|
||||
|
||||
FDebugResText := ResultText;
|
||||
|
||||
if DebugBoss.Evaluate('('+FExpression + ')^', @AddDebuggerResultDeref, Opts) then
|
||||
if DebugBoss.Evaluate('('+FExpression + ')^', @AddDebuggerResultDeref, Opts) then begin
|
||||
FreeAndNil(ResultDBGType);
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
end else
|
||||
FDebugResText := DebugBoss.FormatValue(ResultDBGType, ResultText);
|
||||
|
Loading…
Reference in New Issue
Block a user