Closed
Bug 176989
Opened 23 years ago
Closed 23 years ago
string leak in nsHTMLDocument::StartDocumentLoad()
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: keeda, Assigned: jst)
Details
(Keywords: memory-leak, Whiteboard: [HAVE FIX])
Attachments
(1 file, 2 obsolete files)
|
1.01 KB,
patch
|
peterv
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
nsHTMLDocument::StartDocumentLoad() appears to be leaking a string for some
POST requests. This seems to have been introduced by the checkin for bug 162239.
Patch that fixes the leak is coming up (but it might be better to just cleanup
the nsIMarkupDocumentViewer to return appropriate string class instead of a raw
string)
| Reporter | ||
Comment 1•23 years ago
|
||
| Reporter | ||
Updated•23 years ago
|
Comment 2•23 years ago
|
||
Comment on attachment 104318 [details] [diff] [review]
plug small string leak
Please use nsXPIDLString and getter_Copies for requestCharset instead.
| Reporter | ||
Comment 3•23 years ago
|
||
Attachment #104318 -
Attachment is obsolete: true
Comment 4•23 years ago
|
||
> if (*requestCharset) {
Make that |if (!requestCharset.IsEmpty())| while you're here, ok?
| Reporter | ||
Comment 5•23 years ago
|
||
Attachment #104320 -
Attachment is obsolete: true
Comment 6•23 years ago
|
||
Comment on attachment 104347 [details] [diff] [review]
Doh! (fix late night braindamage)
sr=bzbarsky.
for the record, |if (*str)| _does_ work and even does the right thing for
nsXPIDLC?String, but it's just very non-idiomatic. ;)
Attachment #104347 -
Flags: superreview+
Comment 7•23 years ago
|
||
Comment on attachment 104347 [details] [diff] [review]
Doh! (fix late night braindamage)
r=peterv.
Attachment #104347 -
Flags: review+
| Assignee | ||
Updated•23 years ago
|
Whiteboard: [HAVE FIX]
| Reporter | ||
Comment 8•23 years ago
|
||
Can someone please check this in for me. jst? peterv? bz?
Comment 9•23 years ago
|
||
Done. Sorry, I lost track of this one in my list of stuff to land.... Thanks
for the ping.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in
before you can comment on or make changes to this bug.
Description
•