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.
This commit is contained in:
putterman%netscape.com 2000-03-07 05:13:25 +00:00
Родитель 21d68adbc6
Коммит 5aff76e874
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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<nsIMsgDatabase> unusedDB;
nsCOMPtr <nsIFileSpec> 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)
{