111829 r/sr=bienvenu. fix leaking folder name upon creating new folder.

This commit is contained in:
naving%netscape.com 2001-11-26 22:05:26 +00:00
parent 797838a11d
commit b0774fd75d

View File

@ -1959,8 +1959,8 @@ nsresult nsMsgFolderDataSource::DoNewFolder(nsIMsgFolder *folder, nsISupportsArr
nsCOMPtr<nsIRDFLiteral> literal = do_QueryInterface(elem, &rv);
if(NS_SUCCEEDED(rv))
{
PRUnichar *name;
literal->GetValue(&name);
nsXPIDLString name;
literal->GetValue(getter_Copies(name));
rv = folder->CreateSubfolder(name,mWindow);