зеркало из https://github.com/mozilla/gecko-dev.git
Fixed a leak and incorrect copy of C string. Added nsXPIDLCString::operator =() to simplify usage.
This commit is contained in:
Родитель
87f3477863
Коммит
2308a9ce73
|
@ -591,7 +591,8 @@ NS_IMETHODIMP nsProfile::GetProfileDir(const char *profileName, nsFileSpec* prof
|
|||
|
||||
PR_FREEIF(encodedProfileDir);
|
||||
|
||||
orgProfileDir.Copy(profileDir->GetCString());
|
||||
// nsXPIDLCString::operator =() now copies, and owns result.
|
||||
orgProfileDir = profileDir->GetCString();
|
||||
|
||||
// Get the value of entry "migrated" to check the nature of the profile
|
||||
m_reg->GetString( newKey, "migrated", &isMigrated);
|
||||
|
|
Загрузка…
Ссылка в новой задаче