Merge pull request #8401 from czipperz/BrowserProcess_constructor

Reorder BrowserProcess constructor to avoid invalid memory
This commit is contained in:
Kevin Sawicki 2017-01-13 09:12:51 -08:00 committed by GitHub
commit 99e21a2235

View file

@ -9,10 +9,9 @@
BrowserProcess* g_browser_process = NULL;
BrowserProcess::BrowserProcess() {
BrowserProcess::BrowserProcess()
: print_job_manager_(new printing::PrintJobManager) {
g_browser_process = this;
print_job_manager_.reset(new printing::PrintJobManager);
}
BrowserProcess::~BrowserProcess() {