зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1788241 - Ensure WebRenderImageHost::OnReleased() is called in ImageBridgeParent::ActorDestroy() r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D156142
This commit is contained in:
Родитель
fa04356be7
Коммит
8f7ed31c01
|
@ -144,6 +144,10 @@ void ImageBridgeParent::Shutdown() {
|
|||
void ImageBridgeParent::ActorDestroy(ActorDestroyReason aWhy) {
|
||||
// Can't alloc/dealloc shmems from now on.
|
||||
mClosed = true;
|
||||
|
||||
for (const auto& entry : mCompositables) {
|
||||
entry.second->OnReleased();
|
||||
}
|
||||
mCompositables.clear();
|
||||
{
|
||||
MonitorAutoLock lock(*sImageBridgesLock);
|
||||
|
|
Загрузка…
Ссылка в новой задаче