Closed Bug 488786 Opened 16 years ago Closed 16 years ago

nsDocument::mPendingTitleChangeEvent keeps the document alive longer than needed

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla1.9.1

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

(Keywords: fixed1.9.1)

Attachments

(1 file)

Attached patch patchSplinter Review
Because nsDocument::mPendingTitleChangeEvent contains an event that owns the document, it can keep documents alive longer than needed. This confuses real-time leak detection tools such as DEBUG_CC and leak-monitor. In this case, there's no need for the event to own the document, since the document can revoke the event in its own destructor.
Attachment #373245 - Flags: superreview?(jst)
Attachment #373245 - Flags: review?(jst)
Priority: -- → P3
Target Milestone: --- → mozilla1.9.2a1
Attachment #373245 - Flags: superreview?(jst)
Attachment #373245 - Flags: superreview+
Attachment #373245 - Flags: review?(jst)
Attachment #373245 - Flags: review+
Attachment #373245 - Flags: review?(benjamin) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment on attachment 373245 [details] [diff] [review] patch This is a relatively simple fix that makes leak-monitor a good bit less noisy.
Attachment #373245 - Flags: approval1.9.1?
Attachment #373245 - Flags: approval1.9.1? → approval1.9.1+
Component: Content → DOM
QA Contact: content → general
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: