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

Unified Diff: src/d8.cc

Issue 7780032: Fix some valgrind errors in d8 shell. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 3 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 | « src/d8.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
===================================================================
--- src/d8.cc (revision 9206)
+++ src/d8.cc (working copy)
@@ -1076,6 +1076,12 @@
}
+ShellOptions::~ShellOptions() {
Vitaly Repeshko 2011/09/12 22:06:09 nit: To match the order in the .h file this should
fschneider 2011/09/13 09:29:24 Done.
+ delete[] isolate_sources;
+ isolate_sources = NULL;
Vitaly Repeshko 2011/09/12 22:06:09 Looks like parallel_files should be deleted as wel
fschneider 2011/09/13 09:29:24 Done.
+}
+
+
void SourceGroup::WaitForThread() {
if (thread_ == NULL) return;
if (Shell::options.last_run) {
@@ -1195,7 +1201,7 @@
v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
- // set up isolated source groups
+ // Set up isolated source groups.
options.isolate_sources = new SourceGroup[options.num_isolates];
SourceGroup* current = options.isolate_sources;
current->Begin(argv, 1);
« no previous file with comments | « src/d8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698