зеркало из https://github.com/mozilla/gecko-dev.git
(215094) - only free the pref transform's |stringValue| field if the transform's type was STRING - otherwise it's uninitalized garbage and can cause us to crash on linux.
This commit is contained in:
Родитель
8786effc2b
Коммит
1c299a7bf5
|
@ -410,7 +410,7 @@ nsOperaProfileMigrator::CopyPreferences(PRBool aReplace)
|
|||
}
|
||||
transform->prefHasValue = PR_TRUE;
|
||||
transform->prefSetterFunc(transform, branch);
|
||||
if (transform->stringValue) {
|
||||
if (transform->type == _OPM(STRING) && transform->stringValue) {
|
||||
nsCRT::free(transform->stringValue);
|
||||
transform->stringValue = nsnull;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче