fix memory leak, uninitialized memory
git-svn-id: svn://10.0.0.236/trunk@48200 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9184af0f7e
commit
a23ad71a90
@ -633,6 +633,7 @@ nsMsgAccountManager::GetIncomingServer(const char* key,
|
||||
nsXPIDLCString serverType;
|
||||
rv = m_prefs->CopyCharPref(serverTypePref, getter_Copies(serverType));
|
||||
|
||||
PR_smprintf_free(NS_CONST_CAST(char*, serverTypePref));
|
||||
// the server type doesn't exist. That's bad.
|
||||
if (NS_FAILED(rv))
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
@ -253,7 +253,7 @@ nsresult nsMsgNotificationManager::AddNewMailNotification(nsIMsgFolder *folder)
|
||||
|
||||
ds->Assert(notificationResource, kNC_Type, kNC_NewMessages, PR_TRUE);
|
||||
|
||||
PRUnichar* folderDescription;
|
||||
PRUnichar* folderDescription = nsnull;
|
||||
rv = folder->GetNewMessagesNotificationDescription(&folderDescription);
|
||||
if(NS_SUCCEEDED(rv) && folderDescription)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user