mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 776940: Fix shutdown protocol of shadow OGL layers. r=roc
This commit is contained in:
parent
5452bacad0
commit
439ecb6eca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user