Closed
Bug 285065
Opened 20 years ago
Closed 20 years ago
Firefox preferences window leaks global object due to radio.xml cycle
Categories
(Core :: XUL, defect, P1)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla1.8beta2
People
(Reporter: dbaron, Assigned: dbaron)
Details
(Keywords: memory-leak, Whiteboard: [patch])
Attachments
(2 files)
3.12 KB,
patch
|
bryner
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
4.08 KB,
patch
|
bryner
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
The Firefox preferences window leaks its global object (and thus that of the
window that opened it) because there's a cycle through C++ objects created by
radio.xml: the |iterator| variable is in the scope that's visible to
|_filterRadioGroup|, which is owned by the iterator.
(I'm thinking somebody should do a memory leak audit of these widgets...)
Assignee | ||
Comment 1•20 years ago
|
||
Attachment #176533 -
Flags: superreview?(bryner)
Attachment #176533 -
Flags: review?(bryner)
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [patch]
Target Milestone: --- → mozilla1.8beta2
Updated•20 years ago
|
Attachment #176533 -
Flags: superreview?(bryner)
Attachment #176533 -
Flags: superreview+
Attachment #176533 -
Flags: review?(bryner)
Attachment #176533 -
Flags: review+
Assignee | ||
Comment 2•20 years ago
|
||
Fix checked in to trunk, 2005-03-06 20:36 -0800.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 3•20 years ago
|
||
Comment on attachment 176533 [details] [diff] [review]
patch
>+ // XXX The function really should be global instead of local.
Do you mean as per attachment 134317 [details] [diff] [review]'s _filterRadioGroup method?
Assignee | ||
Comment 4•20 years ago
|
||
(In reply to comment #3)
> (From update of attachment 176533 [details] [diff] [review])
> >+ // XXX The function really should be global instead of local.
> Do you mean as per attachment 134317 [details] [diff] [review]'s _filterRadioGroup method?
Yes.
Comment 5•20 years ago
|
||
Updated•20 years ago
|
Attachment #176576 -
Flags: superreview?(dbaron)
Attachment #176576 -
Flags: review?(bryner)
Assignee | ||
Updated•20 years ago
|
Attachment #176576 -
Flags: superreview?(dbaron) → superreview+
Updated•20 years ago
|
Attachment #176576 -
Flags: review?(bryner) → review+
Comment 6•20 years ago
|
||
I actually patched revision 1.15 of tookit's radio.xml ;-)
Comment 7•20 years ago
|
||
See also bug 323534, "createTreeWalker can cause leaks due to cycles created by closures".
Assignee | ||
Comment 8•20 years ago
|
||
FWIW, bug 323534 removed the need for this patch.
You need to log in
before you can comment on or make changes to this bug.
Description
•