Reorder BrowserProcess constructor to avoid invalid memory

This commit is contained in:
Czipperz 2017-01-12 16:55:26 -08:00
parent 75e81f00e2
commit e4688f1c5a

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() {