mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-06 17:46:07 +02:00
xmlstreaming: fixed error handling
git-svn-id: trunk@45657 -
This commit is contained in:
parent
deded5a183
commit
15cadf6352
@ -147,7 +147,7 @@ begin
|
||||
Writer.WriteRootComponent(AComponent);
|
||||
XMLConfig.Flush;
|
||||
finally
|
||||
if DestroyDriver then
|
||||
if DestroyDriver and (Writer<>nil) then
|
||||
Writer.Driver.Free;
|
||||
Writer.Free;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user