Backed out changeset 9dfa7711709f (bug 1722422) for causing build bustages on SurfaceCache.cpp. CLOSED TREE

This commit is contained in:
criss 2022-02-22 16:23:55 +02:00
Родитель 905ed53042
Коммит 01ec638560
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -1879,12 +1879,9 @@ void SurfaceCache::ReleaseImageOnMainThread(
return;
}
// Don't try to dispatch the release after shutdown.
// Don't try to dispatch the release after shutdown, we'll just leak the
// runnable.
if (gXPCOMThreadsShutDown) {
// Note, this intentionally leaks! If we can't dispatch to the main thread
// because we are late in shutdown then it's better to leak then to release
// on this thread.
image::Image* intentionalLeak = aImage.take();
return;
}