Closed Bug 230368 Opened 21 years ago Closed 21 years ago

better refcount logging for nsXULPrototypeNode subclasses

Categories

(Core :: XUL, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.7alpha

People

(Reporter: dbaron, Assigned: dbaron)

Details

(Whiteboard: [patch])

Attachments

(1 file, 4 obsolete files)

nsXULPrototypeNode and its subclasses are reference counted. I have a patch to hook them up to refcount logging.
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [patch]
Target Milestone: --- → mozilla1.7alpha
Attached patch patch (obsolete) — Splinter Review
sizeof(*this), not sizeof(this)
Attachment #138589 - Attachment is obsolete: true
Attached patch patch (obsolete) — Splinter Review
Plus a change to fix some wacky code in the XBL content sink.
Attachment #138594 - Attachment is obsolete: true
Comment on attachment 138596 [details] [diff] [review] patch Well, I can no longer reproduce the leak I was trying to find using this patch, but I think it's a good patch anyway. (The leak was that I was seeing 3 nsXULPrototypeScript and 4 nsXULPrototypeElement leaked, with one leaked reference each. The former held JS GC roots that held a bunch of other stuff. The whole thing was just doing "./mozilla -mail".)
Attachment #138596 - Flags: superreview?(bryner)
Attachment #138596 - Flags: review?(bryner)
Attachment #138596 - Flags: superreview?(bryner)
Attachment #138596 - Flags: review?(bryner)
Attached patch patch (obsolete) — Splinter Review
cleaner approach
Attachment #138598 - Flags: superreview?(bryner)
Attachment #138598 - Flags: review?(bryner)
Attached patch patchSplinter Review
ok, virtual functions aren't good things to call from base class constructors
Attachment #138598 - Attachment is obsolete: true
Attachment #138598 - Flags: superreview?(bryner)
Attachment #138598 - Flags: review?(bryner)
Attachment #138599 - Flags: superreview?(bryner)
Attachment #138599 - Flags: review?(bryner)
Comment on attachment 138599 [details] [diff] [review] patch Drive-by: looks good to me, just lose the extraneous ; on the nearby line shown in context: virtual void ReleaseSubtree() { Release(); }; /be
Attachment #138599 - Flags: superreview?(bryner)
Attachment #138599 - Flags: superreview+
Attachment #138599 - Flags: review?(bryner)
Attachment #138599 - Flags: review+
Fix checked in to trunk, 2003-01-08 16:01 -0800.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
I don't have time/access to run Purify anymore, but a lot of leaks that I've filed in the past should still be valid...
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: