Bug 1413043 - check WR enabling status before the WR calls. r=pchang

MozReview-Commit-ID: 29mkllmDQ0L
This commit is contained in:
JerryShih 2017-10-31 13:52:41 +08:00
parent 73037a0f6a
commit 12d00a2d70

View File

@ -1008,6 +1008,10 @@ gfxPlatform::Shutdown()
gfx::Factory::ShutDown();
if (gfxConfig::IsEnabled(Feature::WEBRENDER)) {
mozilla::wr::wr_shutdown_external_log_handler();
}
delete gGfxPlatformPrefsLock;
gfxVars::Shutdown();
@ -1016,8 +1020,6 @@ gfxPlatform::Shutdown()
gfxConfig::Shutdown();
mozilla::wr::wr_shutdown_external_log_handler();
gPlatform->WillShutdown();
delete gPlatform;