Revert "Fix use-after-free in isolate reload."

This reverts commit 16e577741d.

TBR=johnmccutchan@google.com,

BUG=

Review URL: https://codereview.chromium.org/2162113002 .
This commit is contained in:
Florian Schneider
2016-07-19 10:44:58 -07:00
parent e010460709
commit daea7e69ca
+2 -2
View File
@@ -1095,8 +1095,6 @@ void Isolate::ReloadSources(bool test_mode) {
has_attempted_reload_ = true;
reload_context_ = new IsolateReloadContext(this, test_mode);
reload_context_->StartReload();
delete reload_context_;
reload_context_ = NULL;
}
#endif // !PRODUCT
@@ -1117,6 +1115,8 @@ void Isolate::DoneFinalizing() {
if (!reload_context_->has_error()) {
reload_context_->ReportSuccess();
}
delete reload_context_;
reload_context_ = NULL;
}
)
}