Closed Bug 103003 Opened 25 years ago Closed 25 years ago

msg db leaking dbfolderinfo table and row

Categories

(MailNews Core :: Database, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

(Keywords: memory-leak)

Attachments

(1 file)

there's a mork leak that has a bunch of mork stuff and then some of the following calls in the stack: orkinStore::GetTableKind() nsresult nsDBFolderInfo::InitFromExistingDB() fix coming up.
Attached patch proposed fix — — Splinter Review
the problem was that in the destructor for nsDBFolderInfo, we were skipping the release of the table and row because m_mdb was null, and that's because we're nulling it out in the code that's in the patch. Since this is just a pointer, not a comptr, the patch works fine. nsDBFolderInfo::~nsDBFolderInfo() { if (gReleaseObserver) { NS_IF_RELEASE(gFolderCharsetObserver); } if (m_mdb) { if (m_mdbTable) m_mdbTable->CutStrongRef(m_mdb->GetEnv()); if (m_mdbRow) m_mdbRow->CutStrongRef(m_mdb->GetEnv()); // nsMsgDatabase strictly owns nsDBFolderInfo, so don't ref-count db. // m_mdb->Release(); } }
Status: NEW → ASSIGNED
Keywords: mlk
Comment on attachment 51958 [details] [diff] [review] proposed fix sr=sspitzer
Attachment #51958 - Flags: superreview+
r=naving
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
QA Contact: esther → stephend
I didn't see this with the following operations: * loading a folder * dragging a message into a folder * deleting a message Verified FIXED using Win2K and Purify (latest opt build with symbols).
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: