mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Backed out changeset 9dfa7711709f (bug 1722422) for causing build bustages on SurfaceCache.cpp. CLOSED TREE
This commit is contained in:
parent
905ed53042
commit
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user