adds resets to destructor

This commit is contained in:
gellert 2016-08-03 17:38:56 +02:00
parent 50485a28d3
commit 8a5e96056e

View file

@ -379,6 +379,13 @@ OffScreenRenderWidgetHostView::~OffScreenRenderWidgetHostView() {
#if defined(OS_MACOSX)
DestroyPlatformWidget();
#endif
if (copy_frame_generator_.get())
copy_frame_generator_.reset(NULL);
delegated_frame_host_.reset(NULL);
compositor_.reset(NULL);
root_layer_.reset(NULL);
}
void OffScreenRenderWidgetHostView::OnBeginFrameTimerTick() {