Closed Bug 42501 Opened 25 years ago Closed 21 years ago

fail to release HTML element in HTMLContentSink::ProcessScriptTag

Categories

(Core :: DOM: HTML Parser, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: waterson, Assigned: jst)

References

()

Details

(Keywords: memory-leak, Whiteboard: [nsbeta3-])

See patrick's leak root test. This is a real obvious one, I think. At http://lxr.mozilla.org/mozilla/source/layout/html/document/src/nsHTMLContentSink.cpp#4560 you create an HMTL element with a bare pointer (luddite!), and then drop it on the floor about ten lines later. Use a nsCOMPtr!
Keywords: mlk
Well, never mind. I was wrong. This code doesn't leak here (it still leaks!) but it's not in the method I thought it was. And you're still a luddite ;-).
This code was written before nsCOMPtrs were even a twinkle in anyone's eye, sonny boy. MLK, so I'll put it high on the priority list.
Status: NEW → ASSIGNED
Keywords: nsbeta3
Whiteboard: [nsbeta3+]
Re-assigning bug to jst as per our decision in yesterday's bug triage meeting.
Status: ASSIGNED → NEW
Really re-assigning...
Assignee: vidur → jst
Marking nsbeta3-.
Whiteboard: [nsbeta3+] → [nsbeta3-]
This bug has been marked "future" because the original netscape engineer working on this is over-burdened. If you feel this is an error, that you or another known resource will be working on this bug,or if it blocks your work in some way -- please attach your concern to the bug for reconsideration.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
updated qa contact.
QA Contact: janc → bsharma
Blocks: 92580
QA Contact: bsharma → moied
No longer blocks: 92580
Is this still an issue? It's not clear what this leak root test did, and I've not seen script elements leaking in leak logs....
Going out on a limb an marking worksforme. As existing this bug isn't really useful...
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.