Chromium Code Reviews| Index: runtime/bin/dartutils.cc |
| diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc |
| index 39f147a5a6991afe85f385b44e34ec45d636dfba..396b116fdd6d6dadb4b3fff83cba50a42d8796e2 100644 |
| --- a/runtime/bin/dartutils.cc |
| +++ b/runtime/bin/dartutils.cc |
| @@ -222,7 +222,8 @@ void DartUtils::WriteFile(const void* buffer, |
| void DartUtils::CloseFile(void* stream) { |
| - delete reinterpret_cast<File*>(stream); |
| + File* file = reinterpret_cast<File*>(stream); |
| + file->Release(); |
| } |