mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 04:58:11 +02:00
FpDebug: Fixed mem leak.
This commit is contained in:
parent
b7ab9549a6
commit
0a2bc87781
@ -3646,6 +3646,7 @@ var
|
||||
n: Integer;
|
||||
CU: TDwarfCompilationUnit;
|
||||
MinMaxSet: boolean;
|
||||
InfoEntry: TDwarfInformationEntry;
|
||||
begin
|
||||
Result := nil;
|
||||
for n := 0 to FCompilationUnits.Count - 1 do
|
||||
@ -3660,7 +3661,9 @@ begin
|
||||
if not CU.Valid then // implies FCompUnitScope is ok
|
||||
break;
|
||||
|
||||
Result := Cu.DwarfSymbolClassMap.CreateUnitSymbol(CU, TDwarfInformationEntry.Create(CU, CU.FCompUnitScope), Self);
|
||||
InfoEntry := TDwarfInformationEntry.Create(CU, CU.FCompUnitScope);
|
||||
Result := Cu.DwarfSymbolClassMap.CreateUnitSymbol(CU, InfoEntry, Self);
|
||||
InfoEntry.ReleaseReference;
|
||||
break;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user