Index: cc/surfaces/direct_compositor_frame_sink_unittest.cc |
diff --git a/cc/surfaces/direct_compositor_frame_sink_unittest.cc b/cc/surfaces/direct_compositor_frame_sink_unittest.cc |
index 4291539c1ecafb91c2dca9b9e986b16372196bbf..b15b5212402997b1d51c0e4cb65ebbdde54cd36d 100644 |
--- a/cc/surfaces/direct_compositor_frame_sink_unittest.cc |
+++ b/cc/surfaces/direct_compositor_frame_sink_unittest.cc |
@@ -67,7 +67,9 @@ class DirectCompositorFrameSinkTest : public testing::Test { |
compositor_frame_sink_client_.did_lose_compositor_frame_sink_called()); |
} |
- ~DirectCompositorFrameSinkTest() override {} |
+ ~DirectCompositorFrameSinkTest() override { |
+ compositor_frame_sink_->DetachFromClient(); |
+ } |
void SwapBuffersWithDamage(const gfx::Rect& damage_rect) { |
std::unique_ptr<RenderPass> render_pass(RenderPass::Create()); |