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

Unified Diff: extensions/renderer/module_system_test.cc

Issue 1074273002: Move the event attach/detach logic on unload from event.js to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix memory leak Created 5 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: extensions/renderer/module_system_test.cc
diff --git a/extensions/renderer/module_system_test.cc b/extensions/renderer/module_system_test.cc
index b9d4a4d8f3a31e36ee89e803755a34f75d3a5e03..440e84f69e090a9b773ebbf3390723db6ba8be84 100644
--- a/extensions/renderer/module_system_test.cc
+++ b/extensions/renderer/module_system_test.cc
@@ -196,6 +196,7 @@ void ModuleSystemTestEnvironment::ShutdownGin() {
}
void ModuleSystemTestEnvironment::ShutdownModuleSystem() {
+ context_->module_system()->Invalidate();
context_->v8_context()->Exit();
context_->Invalidate();
}

Powered by Google App Engine
This is Rietveld 408576698