Browse Source

* Correctly set FDeclaredProperties length

Michaël Van Canneyt 7 months ago
parent
commit
7245902660
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/rtl-objpas/src/inc/rtti.pp

+ 1 - 0
packages/rtl-objpas/src/inc/rtti.pp

@@ -6914,6 +6914,7 @@ begin
       Inc(J);
     end;
   finally
+    SetLength(FDeclaredProperties,PropCount);
     if assigned(List) then
       FreeMem(List);
   end;