mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 17:39:22 +02:00
revert r52574 #6e97929097
git-svn-id: trunk@52575 -
This commit is contained in:
parent
6e97929097
commit
4c4f98fef2
@ -1507,7 +1507,7 @@ begin
|
|||||||
|
|
||||||
// set TypeData (PropCount is the total number of properties, including ancestors)
|
// set TypeData (PropCount is the total number of properties, including ancestors)
|
||||||
NewTypeData^.ClassType:=TClass(NewVMT);
|
NewTypeData^.ClassType:=TClass(NewVMT);
|
||||||
{$IF FPC_FULLVERSION>=30200}
|
{$IF FPC_FULLVERSION>=30100}
|
||||||
GetMem(NewTypeData^.ParentInfoRef,SizeOf(Pointer));
|
GetMem(NewTypeData^.ParentInfoRef,SizeOf(Pointer));
|
||||||
NewTypeData^.ParentInfoRef^:=AncestorClass.ClassInfo;
|
NewTypeData^.ParentInfoRef^:=AncestorClass.ClassInfo;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
@ -1584,7 +1584,7 @@ begin
|
|||||||
|
|
||||||
// free typeinfo
|
// free typeinfo
|
||||||
OldTypeInfo:=PTypeInfo((OldVMT+vmtTypeInfo)^);
|
OldTypeInfo:=PTypeInfo((OldVMT+vmtTypeInfo)^);
|
||||||
{$IF FPC_FULLVERSION>=30200}
|
{$IF FPC_FULLVERSION>=30100}
|
||||||
// free ParentInfoRef
|
// free ParentInfoRef
|
||||||
OldTypeData:=GetTypeData(OldTypeInfo);
|
OldTypeData:=GetTypeData(OldTypeInfo);
|
||||||
FreeMem(OldTypeData^.ParentInfoRef);
|
FreeMem(OldTypeData^.ParentInfoRef);
|
||||||
|
Loading…
Reference in New Issue
Block a user