Closed
Bug 162947
Opened 22 years ago
Closed 22 years ago
leak in nsXULDocument
Categories
(Core :: XUL, defect, P2)
Tracking
()
VERIFIED
FIXED
mozilla1.2alpha
People
(Reporter: alecf, Assigned: alecf)
Details
(Keywords: memory-leak, Whiteboard: fix in hand)
Attachments
(1 file)
754 bytes,
patch
|
timeless
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
we're leaking a bunch of little 8 byte BroadcastListener objects - the patch is very simple and cleans up a ton of leaks from purify (26 of these on startup/shutdown) patch forthcoming.
Assignee | ||
Comment 1•22 years ago
|
||
simple enough. can I get sr=waterson, r=jst? (grabbed jst just because he was the next-most-blamed in this file after hyatt..)
Assignee | ||
Comment 2•22 years ago
|
||
oh what the heck, add hyatt too in case he wants to review this 3-line leak fix :)
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: fix in hand
Target Milestone: --- → mozilla1.2alpha
Comment 3•22 years ago
|
||
Comment on attachment 95477 [details] [diff] [review] free up the listeners in ClearBroadcasterMapEntry r/sr=jst
Attachment #95477 -
Flags: superreview+
Keywords: mlk
QA Contact: shrir → stephend
Comment on attachment 95477 [details] [diff] [review] free up the listeners in ClearBroadcasterMapEntry r=timeless [origin for reference is: 2005 bl = new BroadcastListener; 2012 entry->mListeners.AppendElement(bl); ]
Attachment #95477 -
Flags: review+
Assignee | ||
Comment 5•22 years ago
|
||
thanks folks
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
+ for (PRInt32 i = entry->mListeners.Count(); i>= 0; --i) { I updated my tree and am seeing assertions. Should have started at count-1.
Assignee | ||
Comment 7•22 years ago
|
||
ugh. duh. I'll fix it when the tree opens.
In the past, I saw this every time I'd run Purify, thanks for fixing this Alec. No more appear to be leaking under my latest Purify run. Verified FIXED, trunk Mozilla debug build.
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: stephend → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•