From 9655afa2720080110e6f26d11c464efdb80d1b5a Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Wed, 25 Jul 2012 17:39:47 +1200 Subject: [PATCH] Backout c1878d925ef5 (bug 776940) due to leaks on Mac --- gfx/layers/opengl/ContainerLayerOGL.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gfx/layers/opengl/ContainerLayerOGL.cpp b/gfx/layers/opengl/ContainerLayerOGL.cpp index 215787a0556..20484da4e3d 100644 --- a/gfx/layers/opengl/ContainerLayerOGL.cpp +++ b/gfx/layers/opengl/ContainerLayerOGL.cpp @@ -344,15 +344,7 @@ ShadowContainerLayerOGL::ShadowContainerLayerOGL(LayerManagerOGL *aManager) ShadowContainerLayerOGL::~ShadowContainerLayerOGL() { - // We don't Destroy() on destruction here because this destructor - // can be called after remote content has crashed, and it may not be - // safe to free the IPC resources of our children. Those resources - // are automatically cleaned up by IPDL-generated code. - // - // In the common case of normal shutdown, either - // LayerManagerOGL::Destroy(), a parent - // *ContainerLayerOGL::Destroy(), or Disconnect() will trigger - // cleanup of our resources. + Destroy(); } void