diff --git a/content/html/content/src/nsHTMLTextAreaElement.cpp b/content/html/content/src/nsHTMLTextAreaElement.cpp index f29a2e47a7b..5fcdf1b4206 100644 --- a/content/html/content/src/nsHTMLTextAreaElement.cpp +++ b/content/html/content/src/nsHTMLTextAreaElement.cpp @@ -197,6 +197,9 @@ nsHTMLTextAreaElement::nsHTMLTextAreaElement() nsHTMLTextAreaElement::~nsHTMLTextAreaElement() { + if (mValue) { + nsMemory::Free(mValue); + } }