Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd

This commit is contained in:
Mike Hommey
2015-03-27 09:01:12 +09:00
parent ad9772331a
commit 338d086ead
162 changed files with 481 additions and 484 deletions

View File

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