зеркало из https://github.com/mozilla/pjs.git
Fixed a leak and incorrect copy of C string. Added nsXPIDLCString::operator =() to simplify usage.
This commit is contained in:
Родитель
bb48774ffe
Коммит
b6a94a88a0
|
@ -590,8 +590,9 @@ NS_IMETHODIMP nsProfile::GetProfileDir(const char *profileName, nsFileSpec* prof
|
|||
*profileDir = descriptor;
|
||||
|
||||
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче