Reviewed by Kevin Ollivier.
[WebKit-https.git] / Source / WebCore / platform / wx / FileSystemWx.cpp
index 3644a42..016ea50 100644 (file)
@@ -121,7 +121,7 @@ String openTemporaryFile(const String& prefix, PlatformFileHandle& handle)
 
 void closeFile(PlatformFileHandle& handle)
 {
-    if (handle)
+    if (handle && handle != invalidPlatformFileHandle)
         delete handle;
 }