summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/fcl-base/src/inifiles.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/fcl-base/src/inifiles.pp b/packages/fcl-base/src/inifiles.pp
index eb4164bc1b..f75416d5e9 100644
--- a/packages/fcl-base/src/inifiles.pp
+++ b/packages/fcl-base/src/inifiles.pp
@@ -657,7 +657,11 @@ end;
destructor TIniFile.destroy;
begin
If FDirty and FCacheUpdates then
- UpdateFile;
+ try
+ UpdateFile;
+ except
+ // Eat exception. Compatible to D7 behaviour, see comments to bug 19046
+ end;
inherited destroy;
end;