nsSystemTimeChangeObserver::RemoveWindowListenerImpl leaks the weak reference

RESOLVED FIXED in mozilla25

Status

()

Core
DOM: Device Interfaces
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Ms2ger, Assigned: Away for a while)

Tracking

({mlk})

Trunk
mozilla25
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

1015 bytes, patch
Justin Lebar (not reading bugmail)
: review+
Details | Diff | Splinter Review
(Reporter)

Description

5 years ago
NS_GetWeakReference returns an already-addrefed raw pointer, which isn't released. Prefer do_GetWeakReference.
Ccing code author and reviewer...
Flags: needinfo?(slee)
Flags: needinfo?(justin.lebar+bug)
(Assignee)

Comment 2

5 years ago
Created attachment 771367 [details] [diff] [review]
Patch (v1)
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #771367 - Flags: review?(justin.lebar+bug)
Comment on attachment 771367 [details] [diff] [review]
Patch (v1)

r=me; thanks for catching this.
Attachment #771367 - Flags: review?(justin.lebar+bug) → review+
Flags: needinfo?(slee)
Flags: needinfo?(justin.lebar+bug)
(Assignee)

Comment 4

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/60eb83902698
https://hg.mozilla.org/mozilla-central/rev/60eb83902698
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.