mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 05:39:14 +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;
|
FDebugResText := ResultText;
|
||||||
|
|
||||||
if DebugBoss.Evaluate('('+FExpression + ')^', @AddDebuggerResultDeref, Opts) then
|
if DebugBoss.Evaluate('('+FExpression + ')^', @AddDebuggerResultDeref, Opts) then begin
|
||||||
|
FreeAndNil(ResultDBGType);
|
||||||
exit;
|
exit;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end else
|
end else
|
||||||
FDebugResText := DebugBoss.FormatValue(ResultDBGType, ResultText);
|
FDebugResText := DebugBoss.FormatValue(ResultDBGType, ResultText);
|
||||||
|
Loading…
Reference in New Issue
Block a user