* Fixed access violation

git-svn-id: trunk@10644 -
This commit is contained in:
michael 2008-04-13 14:37:58 +00:00
parent 76e23fc54e
commit d8fdb83aa2

View File

@ -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