mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 632342 - mSensor should be deleted on startup failure. r=blassey
This commit is contained in:
parent
84ab5686cf
commit
016e475fbb
@ -147,8 +147,11 @@ void nsDeviceMotionSystem::Startup()
|
||||
if (mSensor)
|
||||
started = mSensor->Startup();
|
||||
|
||||
if (!started)
|
||||
if (!started) {
|
||||
delete mSensor;
|
||||
mSensor = nsnull;
|
||||
return;
|
||||
}
|
||||
|
||||
mUpdateTimer = do_CreateInstance("@mozilla.org/timer;1");
|
||||
if (mUpdateTimer)
|
||||
|
Loading…
Reference in New Issue
Block a user