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

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: Remove unused GetFD 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
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index fdf624842085cc8821e7915de2f4a9741d0dd51f..38a98931c6c2a02a9ba51e1a389c4e709457d0e6 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -1105,7 +1105,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;
}

Powered by Google App Engine
This is Rietveld 408576698