зеркало из https://github.com/mozilla/pjs.git
fixing some atom leaks in mailnews, bug 202852, r=sspitzer, sr=bzbarsky, a=sspitzer
This commit is contained in:
Родитель
9f3b6bfaa8
Коммит
07e1b4cacb
|
@ -1298,7 +1298,7 @@ nsMsgAccountManager::LoadAccounts()
|
|||
if (m_accountsLoaded)
|
||||
return NS_OK;
|
||||
|
||||
kDefaultServerAtom = NS_NewAtom("DefaultServer");
|
||||
kDefaultServerAtom = do_GetAtom("DefaultServer");
|
||||
|
||||
//Ensure biff service has started
|
||||
nsCOMPtr<nsIMsgBiffManager> biffService =
|
||||
|
|
|
@ -1204,7 +1204,7 @@ NS_IMETHODIMP nsMsgDBView::GetCellProperties(PRInt32 aRow, const PRUnichar *colI
|
|||
PRInt32 endOfKeyword = (spaceIndex == -1) ? keywords.Length() : spaceIndex;
|
||||
keywords.Left(nextKeyword, endOfKeyword);
|
||||
nextKeyword.Insert("kw-", 0);
|
||||
nsCOMPtr <nsIAtom> keywordAtom = NS_NewAtom(nextKeyword.get());
|
||||
nsCOMPtr <nsIAtom> keywordAtom = do_GetAtom(nextKeyword.get());
|
||||
properties->AppendElement(keywordAtom);
|
||||
if (spaceIndex > 0)
|
||||
keywords.Cut(0, endOfKeyword + 1);
|
||||
|
|
Загрузка…
Ссылка в новой задаче