Closed Bug 162947 Opened 24 years ago Closed 24 years ago

leak in nsXULDocument

Categories

(Core :: XUL, defect, P2)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
mozilla1.2alpha

People

(Reporter: alecf, Assigned: alecf)

Details

(Keywords: memory-leak, Whiteboard: fix in hand)

Attachments

(1 file)

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.
simple enough. can I get sr=waterson, r=jst? (grabbed jst just because he was the next-most-blamed in this file after hyatt..)
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 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+
thanks folks
Status: ASSIGNED → RESOLVED
Closed: 24 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.
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.

Attachment

General

Creator:
Created:
Updated:
Size: