Closed
Bug 43450
Opened 26 years ago
Closed 26 years ago
six nsBoxLayout objects leaked in bloat log
Categories
(Core :: XUL, defect, P3)
Tracking
()
RESOLVED
FIXED
M18
People
(Reporter: waterson, Assigned: dbaron)
Details
(Keywords: memory-footprint, memory-leak, Whiteboard: [tind-mlk])
Attachments
(3 files)
|
76.94 KB,
text/plain
|
Details | |
|
49.92 KB,
text/plain
|
Details | |
|
1.67 KB,
patch
|
Details | Diff | Splinter Review |
Bloat logs in recent builds (2000-06-22) leak six nsBoxLayout objects.
| Assignee | ||
Updated•26 years ago
|
Whiteboard: [tind-mlk]
| Assignee | ||
Comment 3•26 years ago
|
||
| Assignee | ||
Comment 4•26 years ago
|
||
| Assignee | ||
Comment 5•26 years ago
|
||
| Assignee | ||
Comment 6•26 years ago
|
||
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
| Assignee | ||
Comment 7•26 years ago
|
||
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
| Assignee | ||
Updated•26 years ago
|
| Reporter | ||
Comment 8•26 years ago
|
||
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.
Comment 9•26 years ago
|
||
It's all good, baby. r=hyatt, but only if you fix the same leaky pattern over in
nsXULTreeCellFrame.cpp as well.
| Assignee | ||
Comment 10•26 years ago
|
||
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.
| Reporter | ||
Comment 11•26 years ago
|
||
a=waterson. thanks!
Comment 12•26 years ago
|
||
yup. r=hyatt
| Assignee | ||
Comment 13•26 years ago
|
||
Fix checked in, 2000-08-06 12:05 PDT.
| Assignee | ||
Comment 14•26 years ago
|
||
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.
Description
•