Merge pull request #8401 from czipperz/BrowserProcess_constructor
Reorder BrowserProcess constructor to avoid invalid memory
This commit is contained in:
commit
99e21a2235
1 changed files with 2 additions and 3 deletions
|
@ -9,10 +9,9 @@
|
||||||
|
|
||||||
BrowserProcess* g_browser_process = NULL;
|
BrowserProcess* g_browser_process = NULL;
|
||||||
|
|
||||||
BrowserProcess::BrowserProcess() {
|
BrowserProcess::BrowserProcess()
|
||||||
|
: print_job_manager_(new printing::PrintJobManager) {
|
||||||
g_browser_process = this;
|
g_browser_process = this;
|
||||||
|
|
||||||
print_job_manager_.reset(new printing::PrintJobManager);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BrowserProcess::~BrowserProcess() {
|
BrowserProcess::~BrowserProcess() {
|
||||||
|
|
Loading…
Reference in a new issue