Index: runtime/bin/file.cc |
diff --git a/runtime/bin/file.cc b/runtime/bin/file.cc |
index 43e19448ace9e5b943454a54d795b48c6f48a9f4..a3dcd7fcb7cb43f2be388129ebd456c25096c1d4 100644 |
--- a/runtime/bin/file.cc |
+++ b/runtime/bin/file.cc |
@@ -113,6 +113,7 @@ void FUNCTION_NAME(File_Exists)(Dart_NativeArguments args) { |
void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) { |
File* file = GetFile(args); |
ASSERT(file != NULL); |
+ file->Close(); |
file->DeleteWeakHandle(Dart_CurrentIsolate()); |
file->Release(); |