Reviewed by Eric.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 5 Mar 2006 11:12:32 +0000 (11:12 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 5 Mar 2006 11:12:32 +0000 (11:12 +0000)
        * Spinneret/Spinneret/WebFrame.cpp:
        (WebKit::WebFrame::loadFilePath): Close file when done.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13141 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Spinneret/Spinneret/WebFrame.cpp

index 733ee745646b0c95b718e8e4a45916b0a8d4f60c..e202e0baf5121466569c065bd12e4dc2ad9ac4c7 100644 (file)
@@ -1,3 +1,10 @@
+2006-03-05  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Eric.
+
+        * Spinneret/Spinneret/WebFrame.cpp:
+        (WebKit::WebFrame::loadFilePath): Close file when done.
+
 2006-03-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
 
         Reviewed by Darin, landed by ap.
index 1c9818fcb41f288fdd63b137162326e56b99a0c5..43ec5897cbd0e20dcc87451263fe9658c6225b6f 100755 (executable)
@@ -87,6 +87,8 @@ void WebFrame::loadFilePath(char* path)
       d->frame->write(buffer);
       // Check for end of file. 
     } while (result && bytesRead);
+
+    CloseHandle(fileHandle);
     
     d->frame->end();
 }