mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 08:17:25 +01:00
FpDebug: Fix mem leak in strings/dwarf-3
git-svn-id: trunk@61413 -
This commit is contained in:
parent
23631ab836
commit
befba0c77b
@ -597,15 +597,16 @@ begin
|
||||
FArrayOrStringType := iasArray;
|
||||
Result := FArrayOrStringType;
|
||||
|
||||
Info := InformationEntry.FirstChild;
|
||||
if Info = nil then exit;
|
||||
|
||||
t2 := TypeInfo;
|
||||
if (t2 = nil) or (t2.Kind <> skChar) then
|
||||
exit;
|
||||
|
||||
// TODO: check lowbound = 1 (const)
|
||||
|
||||
Info := InformationEntry.FirstChild;
|
||||
if Info = nil then
|
||||
exit;
|
||||
|
||||
while Info.HasValidScope do begin
|
||||
t := Info.AbbrevTag;
|
||||
if (t = DW_TAG_enumeration_type) then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user