зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 9dfa7711709f (bug 1722422) for causing build bustages on SurfaceCache.cpp. CLOSED TREE
This commit is contained in:
Родитель
905ed53042
Коммит
01ec638560
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче