* Fixed some AV's

git-svn-id: trunk@8030 -
This commit is contained in:
joost 2007-07-12 20:58:15 +00:00
parent bb8ba21960
commit 86823a8c86

View File

@ -228,11 +228,11 @@ begin
result := el.asstring;
finally
if WCreated then
FWriter.Free;
FreeAndNil(FWriter);
end;
finally
if created then
FDocument.Free;
FreeAndNil(FDocument);
end;
end;
@ -419,7 +419,7 @@ Var
M : TMemoryStream;
begin
CreateDocument;
FDocument := CreateDocument;
Try
FWriter:=CreateWriter(FDocument);
Try
@ -435,10 +435,10 @@ begin
end;
FDocument.SaveToStream(AResponse.ContentStream);
Finally
FWriter.Free;
FreeAndNil(FWriter);
end;
Finally
FDocument.Free;
FreeAndNil(FDocument);
end;
end;