mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Fix memory leak
This commit is contained in:
parent
538f53ea9a
commit
81f95600a3
@ -45,6 +45,7 @@ nsUserInfo::GetFullname(PRUnichar **aFullname)
|
||||
{
|
||||
nsString fullName;
|
||||
fullName.AssignWithConversion( cName );
|
||||
nsAllocator::Free( cName );
|
||||
*aFullname = fullName.ToNewUnicode();
|
||||
}
|
||||
return result;
|
||||
|
@ -45,6 +45,7 @@ nsUserInfo::GetFullname(PRUnichar **aFullname)
|
||||
{
|
||||
nsString fullName;
|
||||
fullName.AssignWithConversion( cName );
|
||||
nsAllocator::Free( cName );
|
||||
*aFullname = fullName.ToNewUnicode();
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user