Bug 979993 - Free the old input data in SetValueInternal. r=bz

This commit is contained in:
Andrew McCreight 2014-03-06 20:27:52 -08:00
parent 887c38c308
commit 3ceac964bd

View File

@ -2798,6 +2798,7 @@ HTMLInputElement::SetValueInternal(const nsAString& aValue,
UpdateAllValidityStates(mParserCreating);
}
} else {
nsMemory::Free(mInputData.mValue);
mInputData.mValue = ToNewUnicode(value);
if (aSetValueChanged) {
SetValueChanged(true);