Closed Bug 110410 Opened 23 years ago Closed 23 years ago

memory leak gone up by 10X (644B to 6880B)

Categories

(Core Graveyard :: Tracking, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.7

People

(Reporter: cathleennscp, Assigned: danm.moz)

Details

(Keywords: memory-leak)

Attachments

(1 file)

Summary: memory leak gone up by 10X (644B to 6880K) → memory leak gone up by 10X (644B to 6880B)
This was at least mostly danm, and he temporarily disabled his changes.
The other leak is because there's no release of the old mNameSpaceManager before the NS_NewNameSpaceManager calls in nsDocument::Reset and nsDocument::ResetToURI. cc:ing jst since I'm not sure the best way to fix this. In particular: * it should probably be an nsCOMPtr * why do we even need to create a new one for Reset, since it contains no state? (Why do we even need one per document?)
Yeah, throwing away the namespace manager in ::Reset() doesn't make sense, creating one if there isn't one seems more reasonable.
Anyway ->danm.
Assignee: cathleen → danm
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.7
Keywords: mlk
Just 10x? I'll try to do better next time. Thanks David for tracking it down! And fixing it! Your patch is in, as is a fix for the mNameSpaceManager leak.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: