FpDebug: Fix mem leak in strings/dwarf-3

git-svn-id: trunk@61413 -
This commit is contained in:
martin 2019-06-18 18:39:11 +00:00
parent 23631ab836
commit befba0c77b

View File

@ -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