Closed
Bug 56762
Opened 25 years ago
Closed 25 years ago
one-time leak from nsRange of 4 nsVoidArray and 1 PRMonitor
Categories
(Core :: DOM: Selection, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla0.9
People
(Reporter: dbaron, Assigned: dbaron)
Details
(Keywords: memory-leak)
Attachments
(2 files)
2.03 KB,
patch
|
Details | Diff | Splinter Review | |
2.05 KB,
patch
|
Details | Diff | Splinter Review |
Code in nsRange.cpp allocates and never destroys the following static variables:
PRMonitor* nsRange::mMonitor
nsVoidArray* nsRange::mStartAncestors
nsVoidArray* nsRange::mEndAncestors
nsVoidArray* nsRange::mStartAncestorOffsets
nsVoidArray* nsRange::mEndAncestorOffsets
This can be fixed easily by a static shutdown function called from the module
destructor (nsLayoutModule::Shutdown() I guess).
Comment 1•25 years ago
|
||
Setting to Future; I don't think this will meet rtm criteria at this stage
unless someone can explain make a case for it.
Target Milestone: --- → Future
Assignee | ||
Comment 2•25 years ago
|
||
Assignee | ||
Comment 3•25 years ago
|
||
Assigning to self since I attached proposed fix.
mjudge - Could you have a look at the attached fix. Does it seem reasonable?
In particular, is there a way you can guarantee that mMonitor is not entered
when the layout module dtor is called (it certainly shouldn't be during XPCOM
shutdown, but can you guarantee it?).
Assignee: mjudge → dbaron
Priority: P3 → P2
Target Milestone: Future → mozilla0.9
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
the monitor should not be entered if events or JS is not processed while xpcom
is shutdown. looks good to me. r=mjudge
Assignee | ||
Comment 5•25 years ago
|
||
![]() |
||
Comment 6•25 years ago
|
||
Naturally, I prefer |0| over |nsnull|, but that is not something I would will on
others as a requirement.
sr=scc
Assignee | ||
Comment 7•25 years ago
|
||
Fix checked in 2000-10-29 13:38-0800.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•