Closed Bug 386009 Opened 17 years ago Closed 17 years ago

nsEditor leaks an nsAString

Categories

(Core :: DOM: Editor, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sayrer, Assigned: sayrer)

Details

(Keywords: memory-leak)

Attachments

(1 file, 1 obsolete file)

Attached patch use NS_LITERAL_STRING (obsolete) (deleted) — Splinter Review
Assignee: nobody → sayrer
Status: NEW → ASSIGNED
Attachment #269974 - Flags: superreview?(dbaron)
Attachment #269974 - Flags: review?(dbaron)
I was thinking actually of using NS_LITERAL_STRING at the caller. But, actually, there's a better way. Remove the whole thing. GetTextNodeTag used to have a bunch of callsites -- places created things using that tag. Now there's only one callsite, and what it does is check it for equality. But nothing is created with it, so we can just remove the entire branch in CreateElementTxn.cpp that checks if (textNodeTag == mTag), and then remove GetTextNodeTag to boot.
Attached patch clean up more code (deleted) — Splinter Review
yes, this is much better
Attachment #269974 - Attachment is obsolete: true
Attachment #270025 - Flags: superreview?(dbaron)
Attachment #270025 - Flags: review?(dbaron)
Attachment #269974 - Flags: superreview?(dbaron)
Attachment #269974 - Flags: review?(dbaron)
Comment on attachment 270025 [details] [diff] [review] clean up more code r+sr=dbaron
Attachment #270025 - Flags: superreview?(dbaron)
Attachment #270025 - Flags: superreview+
Attachment #270025 - Flags: review?(dbaron)
Attachment #270025 - Flags: review+
Does bug 386189 depend on this?
(In reply to comment #5) > Does bug 386189 depend on this? > bug 237964 is much more likely.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Keywords: mlk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: