Chromium Code Reviews| Index: runtime/bin/main.cc |
| diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc |
| index 742754595501bfcfee629c9414f9da91d0e9ddfc..d0d92b2a08ee226c8a6796da2cadb0f3b4e62208 100644 |
| --- a/runtime/bin/main.cc |
| +++ b/runtime/bin/main.cc |
| @@ -1099,7 +1099,7 @@ static void WriteSnapshotFile(const char* snapshot_directory, |
| "Unable to open file %s for writing snapshot\n", |
| qualified_filename); |
| } |
| - delete file; |
| + file->Release(); |
| if (concat != NULL) { |
| delete concat; |
| } |