Chromium Code Reviews| Index: runtime/bin/gen_snapshot.cc |
| diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc |
| index 258b9a72850901574b3a6519cbec3c488849dc25..448fd28cbddf8c0d8ffb0e6d37521bf239697703 100644 |
| --- a/runtime/bin/gen_snapshot.cc |
| +++ b/runtime/bin/gen_snapshot.cc |
| @@ -214,7 +214,7 @@ static void WriteSnapshotFile(const char* filename, |
| if (!file->WriteFully(buffer, size)) { |
| Log::PrintErr("Error: Failed to write snapshot file.\n\n"); |
| } |
| - delete file; |
| + file->Release(); |
| } |