Open Bug 154059 Opened 23 years ago Updated 3 years ago

Memory leak of 12 bytes from 1 block allocated in nsMimeBaseEmitter::Initialize

Categories

(MailNews Core :: MIME, defect)

x86
Windows 2000
defect

Tracking

(Not tracked)

People

(Reporter: stephend, Unassigned)

References

Details

(Keywords: memory-leak)

See also bug 154055 and bug 154088. Windows 2000, using Purify - opening the American Greetings (bring your own brain) template (but I copied it to my Local Draft Folder to reproduce this bug) results in: [W] MLK: Memory leak of 12 bytes from 1 block allocated in nsMimeBaseEmitter::Initialize(nsIURI *,nsIChannel *,int) Distribution of leaked blocks Allocation location new(UINT) [MSVCRT.DLL] nsMimeBaseEmitter::Initialize(nsIURI *,nsIChannel *,int) [nsMimeBaseEmitter.cpp:342] { delete mBufferMgr; } => mBufferMgr = new MimeRebuffer(); // Counters for output stream mTotalWritten = 0; ??? [ip=0x098a5128] nsStreamConverter::Init(nsIURI *,nsIStreamListener *,nsIChannel *) [nsStreamConverter.cpp:702] // initialize our emitter if (NS_SUCCEEDED(rv) && mEmitter) { => mEmitter->Initialize(aURI, aChannel, newType); mEmitter->SetPipe(mInputStream, mOutputStream); mEmitter->SetOutputListener(aOutListener); } nsStreamConverter::AsyncConvertData(WORD const*,WORD const*,nsIStreamListener *,nsISupports *) [nsStreamConverter.cpp:1101] nsCOMPtr<nsIURI> aUri; aChannel->GetURI(getter_AddRefs(aUri)); => return Init(aUri, aListener, aChannel); } NS_IMETHODIMP nsStreamConverter::FirePendingStartRequest() nsStreamConverterService::AsyncConvertData(WORD const*,WORD const*,nsIStreamListener *,nsISupports *,nsIStreamListener * *) [nsStreamConverterService.cpp:669] *_retval = listener; NS_ADDREF(*_retval); => rv = listener->AsyncConvertData(aFromType, aToType, aListener, aContext); } return rv; nsMailboxProtocol::LoadUrl(nsIURI *,nsISupports *) [nsMailboxProtocol.cpp:553] { nsCOMPtr<nsIStreamListener> newConsumer; converter->AsyncConvertData(NS_LITERAL_STRING("message/rfc822").get(), NS_LITERAL_STRING("*/*").get(), => m_channelListener, channel, getter_AddRefs(newConsumer)); if (newConsumer) m_channelListener = newConsumer; nsMsgProtocol::AsyncOpen(nsIStreamListener *,nsISupports *) [nsMsgProtocol.cpp:512] // set the stream listener and then load the url m_channelContext = ctxt; m_channelListener = listener; => return LoadUrl(m_url, nsnull); } NS_IMETHODIMP nsMsgProtocol::GetLoadFlags(nsLoadFlags *aLoadFlags) imgLoader::LoadImage(nsIURI *,nsIURI *,nsILoadGroup *,imgIDecoderObserver *,nsISupports *,UINT,nsISupports *,imgIRequest *,imgIRequest * *) [imgLoader.cpp:370] PR_LOG(gImgLog, PR_LOG_DEBUG, ("[this=%p] imgLoader::LoadImage -- Calling channel->AsyncOpen()\n", this)); => nsresult asyncOpenResult = newChannel->AsyncOpen(NS_STATIC_CAST(nsIStreamListener *, pl), nsnull); NS_RELEASE(pl); nsImageFrame::RealLoadImage(nsAString const&,nsIPresContext *,imgIRequest *,int) [nsImageFrame.cpp:1984] nsImageFrame::LoadImage(nsAString const&,nsIPresContext *,imgIRequest *,int) [nsImageFrame.cpp:1922] ??? [ip=0x0988c034] nsImageFrame::Init(nsIPresContext *,nsIContent *,nsIFrame *,nsIStyleContext *,nsIFrame *) [nsImageFrame.cpp:324] nsCSSFrameConstructor::InitAndRestoreFrame(nsIPresContext *,nsFrameConstructorState&,nsIContent *,nsIFrame *,nsIStyleContext *,nsIFrame *,nsIFrame *) [nsCSSFrameConstructor.cpp:6754] nsCSSFrameConstructor::ConstructHTMLFrame(nsIPresShell *,nsIPresContext *,nsFrameConstructorState&,nsIContent *,nsIFrame *,nsIAtom *,int,nsIStyleContext *,nsFrameItems&) [nsCSSFrameConstructor.cpp:4932] nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell *,nsIPresContext *,nsFrameConstructorState&,nsIContent *,nsIFrame *,nsIAtom *,int,nsIStyleContext *,nsFrameItems&,int) [nsCSSFrameConstructor.cpp:7363] nsCSSFrameConstructor::ConstructFrame(nsIPresShell *,nsIPresContext *,nsFrameConstructorState&,nsIContent *,nsIFrame *,nsFrameItems&) [nsCSSFrameConstructor.cpp:7257] nsCSSFrameConstructor::ProcessBlockChildren(nsIPresShell *,nsIPresContext *,nsFrameConstructorState&,nsIContent *,nsIFrame *,int,nsFrameItems&,int) [nsCSSFrameConstructor.cpp:13530] nsCSSFrameConstructor::ConstructBlock(nsIPresShell *,nsIPresContext *,nsFrameConstructorState&,nsStyleDisplay const*,nsIContent *,nsIFrame *,nsIStyleContext *,nsIFrame *) [nsCSSFrameConstructor.cpp:13478] nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresShell *,nsIPresContext *,nsFrameConstructorState&,nsStyleDisplay const*,nsIContent *,int,nsIAtom *,nsIFrame *,nsIStyleContext *,nsFrameItems&) [nsCSSFrameConstructor.cpp:6517]
Keywords: mlk
QA Contact: gayatri → stephend
Product: MailNews → Core
Assignee: ducarroz → nobody
QA Contact: stephend → mime
Product: Core → MailNews Core
Severity: normal → minor
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.