mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 20:38:16 +02:00
parent
2b61a95171
commit
4f2a09c958
@ -1608,6 +1608,11 @@ begin
|
||||
FreeMem(OldMethodTable);
|
||||
end;
|
||||
|
||||
// set vmtParent
|
||||
{$IFNDEF HasVMTParent}
|
||||
FreeMem(OldVMT^.vParentRef);
|
||||
{$ENDIF}
|
||||
|
||||
// free classname
|
||||
ClassNamePShortString:=Pointer((OldVMT+vmtClassName)^);
|
||||
FreeMem(ClassNamePShortString);
|
||||
@ -1619,7 +1624,7 @@ begin
|
||||
|
||||
// free typeinfo
|
||||
OldTypeInfo:=PTypeInfo((OldVMT+vmtTypeInfo)^);
|
||||
{$IF FPC_FULLVERSION>=30100}
|
||||
{$IFNDEF HasVMTParent}
|
||||
// free ParentInfoRef
|
||||
OldTypeData:=GetTypeData(OldTypeInfo);
|
||||
FreeMem(OldTypeData^.ParentInfoRef);
|
||||
|
Loading…
Reference in New Issue
Block a user