mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:39:18 +02:00
FpDebug: fix Memleak. Introduced in "PascalPrinter, Automatically deref pointers to string types. Issue #39559" / a400e1f8c7
This commit is contained in:
parent
78f789c59b
commit
625e655423
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user