Index: content/browser/renderer_host/render_widget_host_view_android.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc |
index d093def224919018ef8e1cfcb9c07e7f845ddf7a..2e9efb2a433a618af4786642fda7fabdfe747350 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
@@ -808,10 +808,9 @@ void RenderWidgetHostViewAndroid::SwapDelegatedFrame( |
// Drop the cc::DelegatedFrameResourceCollection so that we will not return |
// any resources from the old output surface with the new output surface id. |
if (resource_collection_.get()) { |
+ resource_collection_->SetClient(NULL); |
if (resource_collection_->LoseAllResources()) |
SendReturnedDelegatedResources(last_output_surface_id_); |
- |
- resource_collection_->SetClient(NULL); |
resource_collection_ = NULL; |
} |
DestroyDelegatedContent(); |