Fix memory leak

This commit is contained in:
davidm%netscape.com 2000-05-05 03:09:37 +00:00
parent 538f53ea9a
commit 81f95600a3
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ nsUserInfo::GetFullname(PRUnichar **aFullname)
{
nsString fullName;
fullName.AssignWithConversion( cName );
nsAllocator::Free( cName );
*aFullname = fullName.ToNewUnicode();
}
return result;

View File

@ -45,6 +45,7 @@ nsUserInfo::GetFullname(PRUnichar **aFullname)
{
nsString fullName;
fullName.AssignWithConversion( cName );
nsAllocator::Free( cName );
*aFullname = fullName.ToNewUnicode();
}
return result;