2
0
Эх сурвалжийг харах

* Fixed access violation

git-svn-id: trunk@10644 -
michael 17 жил өмнө
parent
commit
d8fdb83aa2

+ 3 - 2
rtl/objpas/classes/writer.inc

@@ -608,8 +608,9 @@ begin
     try
       Component.GetChildren(@WriteComponent, FRoot);
     Finally
-      For I:=0 to FAncestors.Count-1 do 
-        FAncestors.Objects[i].Free;
+      If Assigned(Fancestors) then
+        For I:=0 to FAncestors.Count-1 do 
+          FAncestors.Objects[i].Free;
       FreeAndNil(FAncestors);
     end;    
   finally