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:
bienvenu%netscape.com 1999-09-18 17:44:25 +00:00
parent 9184af0f7e
commit a23ad71a90
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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)
{