Chromium Code Reviews| Index: runtime/bin/dartutils.cc |
| diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc |
| index 764c00ecf0b311ae4afef90f0048f3f7928a15c8..934ff1262fc9ce027180bfabbba70df25e0334a4 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(); |
| } |