Chromium Code Reviews| Index: runtime/bin/file_win.cc |
| diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc |
| index 054370a3aeedc7a9d98d035ad18877e45eaef49c..3fee579fe18ccb47ca2e69b599f2af0f391500af 100644 |
| --- a/runtime/bin/file_win.cc |
| +++ b/runtime/bin/file_win.cc |
| @@ -38,7 +38,9 @@ class FileHandle { |
| File::~File() { |
| - Close(); |
| + if (!IsClosed()) { |
| + Close(); |
| + } |
| delete handle_; |
| } |