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

Unified Diff: content/renderer/child_frame_compositing_helper.cc

Issue 857643002: Cleanup ChildFrameCompositingHelper on destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/child_frame_compositing_helper.cc
diff --git a/content/renderer/child_frame_compositing_helper.cc b/content/renderer/child_frame_compositing_helper.cc
index 410e20b62a9985fef0c7bad6a349b1bce44fb4fd..08293fd016ff560655c08a4ed87fc33cfcf4756f 100644
--- a/content/renderer/child_frame_compositing_helper.cc
+++ b/content/renderer/child_frame_compositing_helper.cc
@@ -61,7 +61,10 @@ ChildFrameCompositingHelper::ChildFrameCompositingHelper(
render_frame_proxy_(render_frame_proxy),
frame_(frame) {}
-ChildFrameCompositingHelper::~ChildFrameCompositingHelper() {}
+ChildFrameCompositingHelper::~ChildFrameCompositingHelper() {
+ if (resource_collection_.get())
+ resource_collection_->SetClient(NULL);
danakj 2015/02/03 20:07:42 Destruction implies the child compositor is shutti
lfg 2015/02/03 20:26:22 The child compositor is shutting down. I'm not sur
danakj 2015/02/03 20:40:10 Right. But if you just drop the client, you'll lea
+}
BrowserPluginManager* ChildFrameCompositingHelper::GetBrowserPluginManager() {
if (!browser_plugin_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698