Closed Bug 59261 Opened 25 years ago Closed 24 years ago

leak string in nsMsgComposeAndSend::GetBodyFromEditor

Categories

(MailNews Core :: Composition, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: bugzilla)

Details

(Keywords: memory-leak)

Attachments

(2 files)

Running using the Boehm GC, I sent a message to myself by clicking on a mailto: link to myself (so it's a text/plain message, although the string leaked was HTML). This showed that the object in the attached snippet was leaked. The leak seems to me to be in nsMsgComposeAndSend::GetBodyFromEditor, where nsMsgI18NSaveAsCharset is called on line 1301, and outCString is never freed after SnarfAndCopyBody at the end of the message.
accepting
Status: NEW → ASSIGNED
Attached patch Proposed fixSplinter Review
Whiteboard: Fix in hand
sr=mscott
r=alecf
Fixed and checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: Fix in hand
David, could you possibly check to see if this is still happening and verify this bug if fixed. This would be greatly appreciated. Thanks!
QA Contact: esther → stephend
I saw no leaks here when clicking on my own mailto: link on http://people.netscape.com/stephend/, using Purify on Windows 2000 (saw a bunch of what I think is Hyatt's new style code leaking TextRun, but that's diff.) Trunk CVS pull/opt build.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: