[fpc-devel] XmlCfg Patch
Ales Katona
ales at chello.sk
Thu Dec 16 13:50:56 CET 2004
This patch fixes a problem with XmlCfg related to reading a bad xml file
and catching an exception:
try
axml:=TXMlConfig.Create(filename); // try to parse the file
except
on E: Exception do
begin
writeln('Error: '+ E.Message);
freeandnil(axml);
end;
end;
There's a memory leak if the exception get's called(with or without
freeandnil).
Ales
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-fpc.txt
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20041216/70e459d0/attachment.txt>
More information about the fpc-devel
mailing list