adds resets to destructor
authorgellert <gellihegyi@gmail.com>
Wed, 3 Aug 2016 15:38:56 +0000 (17:38 +0200)
committergellert <gellihegyi@gmail.com>
Wed, 3 Aug 2016 15:38:56 +0000 (17:38 +0200)
atom/browser/osr/osr_render_widget_host_view.cc

index 4ae3a57..2f6d026 100644 (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() {