Closed
Bug 21249
Opened 26 years ago
Closed 26 years ago
Leaking nsIAtoms
Categories
(Core :: XUL, defect, P3)
Core
XUL
Tracking
()
RESOLVED
FIXED
M14
People
(Reporter: beard, Assigned: eric)
Details
Atoms are reference counted. You're calling nsIContent::GetTag() without
calling NS_RELEASE on the result when you're done with it. Here's a patch:
Index: mozilla/layout/xul/base/src/nsScrollbarButtonFrame.cpp
===================================================================
RCS file: /cvsroot/mozilla/layout/xul/base/src/nsScrollbarButtonFrame.cpp,v
retrieving revision 1.7
diff -r1.7 nsScrollbarButtonFrame.cpp
194,195c194,195
< nsIAtom* tag = nsnull;
< child->GetTag(tag);
---
> nsCOMPtr<nsIAtom> tag;
> child->GetTag(*getter_AddRefs(tag));
228,229c228,229
< nsIAtom* atom;
< if (child && child->GetTag(atom) == NS_OK && atom == toFind) {
---
> nsCOMPtr<nsIAtom> atom;
> if (child && child->GetTag(*getter_AddRefs(atom)) == NS_OK && atom ==
toFind) {
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M14
| Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 1•26 years ago
|
||
This is fixed
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL
component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Comment 3•26 years ago
|
||
please ignore, massive spam giving jrgm@netscape.com backlog of XPToolkits
resolved fixed bugs to verify
QA Contact: paulmac → jrgm
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•