(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:
ben%bengoodger.com 2004-02-29 21:45:25 +00:00
Родитель 8786effc2b
Коммит 1c299a7bf5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}