From 5aff76e8747d6c46dd38e327e5c87f37bb261e44 Mon Sep 17 00:00:00 2001 From: "putterman%netscape.com" Date: Tue, 7 Mar 2000 05:13:25 +0000 Subject: [PATCH] Fix for 29814. a=phil r=bienvenu. Mail folders now load after they are imported. Fixes a memory leak that was preventing this from working. --- mailnews/local/src/nsLocalMailFolder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mailnews/local/src/nsLocalMailFolder.cpp b/mailnews/local/src/nsLocalMailFolder.cpp index 773c713db894..f3d21b70467f 100644 --- a/mailnews/local/src/nsLocalMailFolder.cpp +++ b/mailnews/local/src/nsLocalMailFolder.cpp @@ -644,10 +644,10 @@ nsMsgLocalMailFolder::CreateSubfolder(const PRUnichar *folderName) rv = nsComponentManager::CreateInstance(kCMailDB, nsnull, NS_GET_IID(nsIMsgDatabase), getter_AddRefs(mailDBFactory)); if (NS_SUCCEEDED(rv) && mailDBFactory) { - nsIMsgDatabase *unusedDB = NULL; + nsCOMPtr unusedDB; nsCOMPtr dbFileSpec; NS_NewFileSpecWithSpec(path, getter_AddRefs(dbFileSpec)); - rv = mailDBFactory->Open(dbFileSpec, PR_TRUE, PR_TRUE, (nsIMsgDatabase **) &unusedDB); + rv = mailDBFactory->Open(dbFileSpec, PR_TRUE, PR_TRUE, getter_AddRefs(unusedDB)); if (NS_SUCCEEDED(rv) && unusedDB) {