mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 15:20:09 +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
|
else
|
||||||
if s <> '' then
|
if s <> '' then
|
||||||
APrintedValue := s + '(' + APrintedValue + ')'; // no typeinfo for strings/pchar
|
APrintedValue := s + '(' + APrintedValue + ')'; // no typeinfo for strings/pchar
|
||||||
|
m.ReleaseReference;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result := True;
|
Result := True;
|
||||||
|
Loading…
Reference in New Issue
Block a user