Browse Source

* Fix exception propagation in TiniFile.Free (bug 19046)

git-svn-id: trunk@17230 -
michael 14 năm trước cách đây
mục cha
commit
bd302b760e
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      packages/fcl-base/src/inifiles.pp

+ 5 - 1
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;