mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 251267 - Memory leak in XRemoteService.cpp.
r/sr=blizzard@mozilla.org
This commit is contained in:
parent
3c166e0c6e
commit
714333c300
@ -1067,12 +1067,10 @@ XRemoteService::GetProfileName(nsACString &aProfile)
|
||||
if (!profileMgr)
|
||||
return;
|
||||
|
||||
PRUnichar *name;
|
||||
rv = profileMgr->GetCurrentProfile(&name);
|
||||
if (!name)
|
||||
return;
|
||||
|
||||
LossyCopyUTF16toASCII(name, aProfile);
|
||||
nsXPIDLString name;
|
||||
rv = profileMgr->GetCurrentProfile(getter_Copies(name));
|
||||
if (NS_SUCCEEDED(rv))
|
||||
LossyCopyUTF16toASCII(name, aProfile);
|
||||
}
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(XRemoteService)
|
||||
|
Loading…
Reference in New Issue
Block a user