From e47cab69424304cdd124ece1e9c1916e5166fe9c Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 2 Apr 2011 16:25:43 +0000 Subject: * Fix exception propagation in TiniFile.Free (bug 19046) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17230 3ad0048d-3df7-0310-abae-a5850022a9f2 --- packages/fcl-base/src/inifiles.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packages/fcl-base') 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; -- cgit v1.2.1