Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Unified Diff: runtime/bin/main.cc

Issue 1892623002: Fixes leak of native File objects. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | sdk/lib/_internal/js_runtime/lib/io_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | sdk/lib/_internal/js_runtime/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698