Backout c1878d925ef5 (bug 776940) due to leaks on Mac

This commit is contained in:
Robert O'Callahan 2012-07-25 17:39:47 +12:00
parent 6a005beed7
commit 9655afa272

View File

@ -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