Closed
Bug 737462
Opened 11 years ago
Closed 11 years ago
nsDeviceMotion w/ bug 735330 leaks mochitest-3
Categories
(Core :: DOM: Geolocation, defect)
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: dougt, Assigned: dougt)
Details
Attachments
(1 file, 1 obsolete file)
2.19 KB,
patch
|
mwu
:
review+
|
Details | Diff | Splinter Review |
two problems: 1) Shutdown() isn't always called on nsDeviceMotion. This means that we will not unregister any hal listeners. We need to call Shutdown as we get destroyed. 2) in hal, there is a list of sensors pointed to by gSensorObservers. We need to free this as the last sensor is unregistered.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #607593 -
Flags: review?(mwu)
Assignee | ||
Updated•11 years ago
|
Attachment #607593 -
Attachment is obsolete: true
Attachment #607593 -
Flags: review?(mwu)
Assignee | ||
Comment 2•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=53cae499d229&pusher=dougt@mozilla.com
Attachment #607705 -
Flags: review?(mwu)
Assignee | ||
Comment 3•11 years ago
|
||
ignore that: -static SensorObserverList *gSensorObservers = NULL; +static SensorObserverList* gSensorObservers;
Updated•11 years ago
|
Attachment #607705 -
Flags: review?(mwu) → review+
Comment 4•11 years ago
|
||
(In reply to Doug Turner (:dougt) from comment #3) > ignore that: > > -static SensorObserverList *gSensorObservers = NULL; > +static SensorObserverList* gSensorObservers; I like it though. the removal of =NULL, that is. I have no opinion on which side to keep the * on.
Comment 5•11 years ago
|
||
Sorry, I backed this out because XUL Fennec was broken by one of the bugs this landed with. This can probably re-land if it doesn't depend on bug 734854. https://hg.mozilla.org/integration/mozilla-inbound/rev/4c0b0a3c272f
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3d6c7cf537de
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in
before you can comment on or make changes to this bug.
Description
•