Closed Bug 43450 Opened 26 years ago Closed 26 years ago

six nsBoxLayout objects leaked in bloat log

Categories

(Core :: XUL, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: waterson, Assigned: dbaron)

Details

(Keywords: memory-footprint, memory-leak, Whiteboard: [tind-mlk])

Attachments

(3 files)

Bloat logs in recent builds (2000-06-22) leak six nsBoxLayout objects.
Keywords: mlk
targeting
Status: NEW → ASSIGNED
Target Milestone: --- → M18
Two of the 6 are explained in bug 43582. That leaves 4 others.
Whiteboard: [tind-mlk]
Keywords: review
Stealing this bug, since I have a fix. evaughan: If you review this, I can check it in after the tree reopens.
Assignee: evaughan → dbaron
Status: ASSIGNED → NEW
evaughan: Could you have a look at this fix? In particular, in the middle fix, is it OK to continue using templeBox after releasing temple? Accepting bug.
Status: NEW → ASSIGNED
hyatt: tell me one thing. just one thing. can you use a templebox after releasing the temple? give dbaron some r= lovin' here. this code is as greek as the acropolis to me.
It's all good, baby. r=hyatt, but only if you fix the same leaky pattern over in nsXULTreeCellFrame.cpp as well.
Hyatt, I assume this is what you mean, right?: Index: nsXULTreeCellFrame.cpp =================================================================== RCS file: /cvsroot/mozilla/layout/xul/base/src/nsXULTreeCellFrame.cpp,v retrieving revision 1.4 diff -U8 -r1.4 nsXULTreeCellFrame.cpp --- nsXULTreeCellFrame.cpp 2000/08/02 00:27:07 1.4 +++ nsXULTreeCellFrame.cpp 2000/08/06 03:04:59 @@ -112,16 +112,17 @@ // Now find the nth column in the other temple. nsCOMPtr<nsIBox> box(do_QueryInterface(mParent)); nsCOMPtr<nsIBoxLayout> lm; box->GetLayoutManager(getter_AddRefs(lm)); nsCOMPtr<nsIMonument> mon(do_QueryInterface(lm)); nsTempleLayout* temple = nsnull; nsIBox* templeBox = nsnull; mon->GetOtherTemple(box, &temple, &templeBox); + NS_IF_RELEASE(temple); nsMonumentIterator iter(templeBox); nsIBox* child = nsnull; nsObeliskLayout* ob; PRInt32 currIndex = 0; if (left) i--; This looks very similar to the first change in nsObeliskLayout.cpp.
a=waterson. thanks!
yup. r=hyatt
Fix checked in, 2000-08-06 12:05 PDT.
Er, really.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: