Bug 1550422 - P6. Release object early when error. r=mattwoodrow

No need to keep the object alive.

Differential Revision: https://phabricator.services.mozilla.com/D31014

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jean-Yves Avenard 2019-05-23 04:13:06 +00:00
parent ae9b00180b
commit 0176b72a88
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ bool RDDProcessHost::Launch(StringVector aExtraOpts) {
if (!GeckoChildProcessHost::AsyncLaunch(aExtraOpts)) {
mLaunchPhase = LaunchPhase::Complete;
mPrefSerializer = nullptr;
return false;
}
return true;

View File

@ -51,6 +51,7 @@ bool GPUProcessHost::Launch(StringVector aExtraOpts) {
if (!GeckoChildProcessHost::AsyncLaunch(aExtraOpts)) {
mLaunchPhase = LaunchPhase::Complete;
mPrefSerializer = nullptr;
return false;
}
return true;