FpDebug: fix Memleak. Introduced in "PascalPrinter, Automatically deref pointers to string types. Issue #39559" / a400e1f8c7

This commit is contained in:
Martin 2022-03-04 00:15:20 +01:00
parent 78f789c59b
commit 625e655423

View File

@ -791,6 +791,7 @@ function TFpPascalPrettyPrinter.InternalPrintValue(out APrintedValue: String;
else
if s <> '' then
APrintedValue := s + '(' + APrintedValue + ')'; // no typeinfo for strings/pchar
m.ReleaseReference;
end;
Result := True;