Closed Bug 176985 Opened 23 years ago Closed 23 years ago

nsHTMLDocument::SetDomain() can leak an nsIURI

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: keeda, Assigned: jst)

Details

(Keywords: memory-leak, Whiteboard: [HAVE FIX])

Attachments

(1 file)

nsHTMLDocument::SetDomain() uses a raw pointer to a newly created nsIURI, and doesnt care to release when it is done. This results in a small leak. Trivial fix is coming up.
Keywords: mlk, patch
Comment on attachment 104316 [details] [diff] [review] convert to nsCOMPtr and plug the leak r=peterv
Attachment #104316 - Flags: review+
Attachment #104316 - Flags: superreview+
Comment on attachment 104316 [details] [diff] [review] convert to nsCOMPtr and plug the leak sr=bzbarsky
Go ahead and ask for approval for this, please.
Whiteboard: [HAVE FIX]
Comment on attachment 104316 [details] [diff] [review] convert to nsCOMPtr and plug the leak a=roc+moz for trunk
Attachment #104316 - Flags: approval+
checked in.
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.

Attachment

General

Created:
Updated:
Size: