Bug 1412081 - Call KillClearOnShutdown(ShutdownPhase::ShutdownFinal) in PluginProcessChild on all platforms r=jimm

This call gated by ifdef OS_WIN - so on Linux it would leak objects that were supposed to be ClearOnShutdown in the plugin process

--HG--
extra : rebase_source : 24c4233ec8735e0176d584b623ad626d0a9b5c3b
This commit is contained in:
Valentin Gosu 2018-07-05 17:20:58 +02:00
parent 5bd326c5f5
commit cac3417291

View File

@ -167,9 +167,10 @@ PluginProcessChild::CleanUp()
// call XPCOM's shutdown but we need this event to be sent to avoid
// leaking objects labeled as ClearOnShutdown.
nsThreadManager::get().Shutdown();
mozilla::KillClearOnShutdown(ShutdownPhase::ShutdownFinal);
NS_LogTerm();
#endif
mozilla::KillClearOnShutdown(ShutdownPhase::ShutdownFinal);
}
} // namespace plugins