Index: base/files/file.cc |
diff --git a/base/files/file.cc b/base/files/file.cc |
index 2a2f84330ea9b4e32050ff9e1d2fca0200037086..da261d625bd411221a9ffee6cacdf9e70de632b6 100644 |
--- a/base/files/file.cc |
+++ b/base/files/file.cc |
@@ -60,6 +60,8 @@ File::File(RValue other) |
} |
File::~File() { |
+ // Go through the AssertIOAllowed logic. |
+ Close(); |
} |
File& File::operator=(RValue other) { |