Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
This commit is contained in:
@@ -1179,7 +1179,7 @@ void
|
||||
HTMLInputElement::FreeData()
|
||||
{
|
||||
if (!IsSingleLineTextControl(false)) {
|
||||
nsMemory::Free(mInputData.mValue);
|
||||
free(mInputData.mValue);
|
||||
mInputData.mValue = nullptr;
|
||||
} else {
|
||||
UnbindFromFrame(nullptr);
|
||||
@@ -2895,7 +2895,7 @@ HTMLInputElement::SetValueInternal(const nsAString& aValue,
|
||||
UpdateAllValidityStates(mParserCreating);
|
||||
}
|
||||
} else {
|
||||
nsMemory::Free(mInputData.mValue);
|
||||
free(mInputData.mValue);
|
||||
mInputData.mValue = ToNewUnicode(value);
|
||||
if (aSetValueChanged) {
|
||||
SetValueChanged(true);
|
||||
|
||||
Reference in New Issue
Block a user