зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
21d68adbc6
Коммит
5aff76e874
|
@ -644,10 +644,10 @@ nsMsgLocalMailFolder::CreateSubfolder(const PRUnichar *folderName)
|
||||||
rv = nsComponentManager::CreateInstance(kCMailDB, nsnull, NS_GET_IID(nsIMsgDatabase), getter_AddRefs(mailDBFactory));
|
rv = nsComponentManager::CreateInstance(kCMailDB, nsnull, NS_GET_IID(nsIMsgDatabase), getter_AddRefs(mailDBFactory));
|
||||||
if (NS_SUCCEEDED(rv) && mailDBFactory)
|
if (NS_SUCCEEDED(rv) && mailDBFactory)
|
||||||
{
|
{
|
||||||
nsIMsgDatabase *unusedDB = NULL;
|
nsCOMPtr<nsIMsgDatabase> unusedDB;
|
||||||
nsCOMPtr <nsIFileSpec> dbFileSpec;
|
nsCOMPtr <nsIFileSpec> dbFileSpec;
|
||||||
NS_NewFileSpecWithSpec(path, getter_AddRefs(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)
|
if (NS_SUCCEEDED(rv) && unusedDB)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче