Reorder BrowserProcess constructor to avoid invalid memory
This commit is contained in:
parent
75e81f00e2
commit
e4688f1c5a
1 changed files with 2 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue