mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 979993 - Free the old input data in SetValueInternal. r=bz
This commit is contained in:
parent
887c38c308
commit
3ceac964bd
@ -2798,6 +2798,7 @@ HTMLInputElement::SetValueInternal(const nsAString& aValue,
|
||||
UpdateAllValidityStates(mParserCreating);
|
||||
}
|
||||
} else {
|
||||
nsMemory::Free(mInputData.mValue);
|
||||
mInputData.mValue = ToNewUnicode(value);
|
||||
if (aSetValueChanged) {
|
||||
SetValueChanged(true);
|
||||
|
Loading…
Reference in New Issue
Block a user