Fix mem leak from revision 58238 #cef14db081: "DebuggerIntf: Refactor, evaluate now takes a callback"

git-svn-id: trunk@58267 -
This commit is contained in:
martin 2018-06-14 11:55:32 +00:00
parent 9602db0b8b
commit 899367e92f

View File

@ -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);