Closed Bug 278596 Opened 20 years ago Closed 20 years ago

View / Message Body As in messenger broken

Categories

(MailNews Core :: MIME, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mikael, Assigned: mikael)

Details

(Keywords: regression)

Attachments

(1 file)

After my last check-in for bug 226005, View / Message Body As in messenger is broken. The reason for this is that the old mime-code is broken. It is using a nsIPref*, doing a ->Release() on it, but using it anyway after that. In the new code checked in I used a nsCOMPtr instead of a pointer, making calls after it was released to fail.
Attached patch regression fixSplinter Review
As suggested by biesi on irc, do not clear out the m_prefBranch. With this patch, View / Message Body As works. I'm not completely convinced that m_prefBranch is released at all times, but I did not manage to get RefCount balancer to work in my build so I can't verify this. I am out of town for a few days so if reviewers approve this patch maybe I could get some help to check it in.
Attachment #171402 - Flags: superreview?(bienvenu)
Attachment #171402 - Flags: review?(neil.parkwaycc.co.uk)
Status: NEW → ASSIGNED
Comment on attachment 171402 [details] [diff] [review] regression fix options contains other nsCOMPtrs and I'm sure they're properly released.
Attachment #171402 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 171402 [details] [diff] [review] regression fix since MimeDisplayOptions is now a class instead of a struct, this should be ok, as long is it gets deleted.
Attachment #171402 - Flags: superreview?(bienvenu) → superreview+
patch checked in. please resolve the bug if it is fixed now. Checking in mailnews/mime/src/mimedrft.cpp; /cvsroot/mozilla/mailnews/mime/src/mimedrft.cpp,v <-- mimedrft.cpp new revision: 1.139; previous revision: 1.138 done Checking in mailnews/mime/src/mimemoz2.cpp; /cvsroot/mozilla/mailnews/mime/src/mimemoz2.cpp,v <-- mimemoz2.cpp new revision: 1.215; previous revision: 1.214 done
Works now in build 20050120
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
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: