Closed
Bug 78912
Opened 24 years ago
Closed 24 years ago
nsMsgPrintEngine::SetStatusMessage() is leaking a string.
Categories
(MailNews Core :: Printing, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: jud, Assigned: jud)
Details
(Keywords: memory-leak)
Attachments
(2 files)
nsresult
nsMsgPrintEngine::SetStatusMessage(PRUnichar *aMsgString)
{
PRUnichar *progressMsg;
if ( (!mFeedback) || (!aMsgString) )
return NS_OK;
progressMsg = nsCRT::strdup(aMsgString);
mFeedback->ShowStatusString(progressMsg);
return NS_OK;
}
progressMsg is being leaked.
Assignee | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
sr=mscottt....thanks jud.
Comment 3•24 years ago
|
||
r=rpotts.
I bet that you could get rid of the strdup() and free() all together in
nsMsgPrintEngine::SetStatusMessage(...)
Assignee | ||
Comment 4•24 years ago
|
||
Comment 5•24 years ago
|
||
some rhp extra str duping..
looks good.
sr=mscott
Assignee | ||
Comment 6•24 years ago
|
||
fix is in. thanks.
Assignee | ||
Comment 7•24 years ago
|
||
this was checked in yesterday.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 10•24 years ago
|
||
Thanks!
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•