revert r52574 #6e97929097

git-svn-id: trunk@52575 -
This commit is contained in:
ondrej 2016-06-23 11:00:26 +00:00
parent 6e97929097
commit 4c4f98fef2

View File

@ -1507,7 +1507,7 @@ begin
// set TypeData (PropCount is the total number of properties, including ancestors)
NewTypeData^.ClassType:=TClass(NewVMT);
{$IF FPC_FULLVERSION>=30200}
{$IF FPC_FULLVERSION>=30100}
GetMem(NewTypeData^.ParentInfoRef,SizeOf(Pointer));
NewTypeData^.ParentInfoRef^:=AncestorClass.ClassInfo;
{$ELSE}
@ -1584,7 +1584,7 @@ begin
// free typeinfo
OldTypeInfo:=PTypeInfo((OldVMT+vmtTypeInfo)^);
{$IF FPC_FULLVERSION>=30200}
{$IF FPC_FULLVERSION>=30100}
// free ParentInfoRef
OldTypeData:=GetTypeData(OldTypeInfo);
FreeMem(OldTypeData^.ParentInfoRef);