зеркало из https://github.com/mozilla/pjs.git
fix memory leak of user name r=mscott
This commit is contained in:
Родитель
2cbb310de7
Коммит
fc6692cfcd
|
@ -516,18 +516,15 @@ NS_IMETHODIMP nsImapIncomingServer::PossibleImapMailbox(const char *folderPath)
|
|||
uri.Append(kImapRootURI);
|
||||
uri.Append('/');
|
||||
|
||||
char *username;
|
||||
GetUsername(&username);
|
||||
uri.Append(username);
|
||||
uri.Append('@');
|
||||
char *hostName = nsnull;
|
||||
GetHostName(&hostName);
|
||||
nsXPIDLCString userName;
|
||||
GetUsername(getter_Copies(userName));
|
||||
uri.Append(userName);
|
||||
uri.Append('@');
|
||||
|
||||
nsXPIDLCString hostName;
|
||||
GetHostName(getter_Copies(hostName));
|
||||
uri.Append(hostName);
|
||||
|
||||
if (hostName)
|
||||
{
|
||||
uri.Append(hostName);
|
||||
nsAllocator::Free(hostName);
|
||||
}
|
||||
#if 0
|
||||
PRInt32 leafPos = folderName.RFindChar('/');
|
||||
if (leafPos > 0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче