Bug 776940: Fix shutdown protocol of shadow OGL layers. r=roc

This commit is contained in:
Chris Jones 2012-07-24 19:46:32 -07:00
parent 5452bacad0
commit 439ecb6eca

View File

@ -344,7 +344,15 @@ ShadowContainerLayerOGL::ShadowContainerLayerOGL(LayerManagerOGL *aManager)
ShadowContainerLayerOGL::~ShadowContainerLayerOGL()
{
Destroy();
// 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.
}
void