Closed Bug 43687 Opened 24 years ago Closed 22 years ago

Leakage noise fix for class CNewlineToken

Categories

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

x86
Linux
defect

Tracking

()

RESOLVED INVALID
mozilla1.0.1

People

(Reporter: inaky.gonzalez, Assigned: harishd)

Details

(Keywords: memory-leak)

Attachments

(1 file)

Class CNewlineToken allocates an static variable at method GetStringValueXXX() which adds noise to the leak logs. With this patch I move that variable to be a class static, and via a instances count, it is allocated or deleted, as soon as any object is created/all of them are destroyed. I´m considering this would be a good candidate to be #ifdef DEBUG, as I could be hitting performance.
Keywords: mlk, patch
Okay, here is the patch, didn´t have time to post it last Friday. Again, I mention this could be a good candidate to be #ifdef´ed DEBUG, unluess you guys disagree.
Attached patch Simple fix using refcounts (deleted) — Splinter Review
Carl has a (I think much better) sollution for this, simply using an static nsString. I can recall you had some arguments against static objects, but I cannot remember if it was limited to nsCOMPtr or what was the point exactly. Could you guys ellaborate on it? Thx,
updated qa contact.
QA Contact: janc → bsharma
Blocks: 92580
QA Contact: bsharma → moied
No longer blocks: 92580
inaky.gonzalez@intel.com: Are you still working on this bug ? Can you please add a comment ?
I have not done any work on mozilla for a long time already, so I cannot add any insight.
-> default owner (via mail:Inaky Perez Gonzalez has no time for this)
Assignee: inaky.gonzalez → harishd
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0.1
The code has changed, a lot, since the bug was filed and I don't think it's an issue anymore. If you disagree please reopen the bug. For now marking INVALID.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: