소스 검색

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

git-svn-id: trunk@17230 -
michael 14 년 전
부모
커밋
bd302b760e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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;