From 2f896de2a2e93cc033b9f26acb6c1f6e33daf69b Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Tue, 25 Mar 2003 23:59:26 +0000 Subject: [PATCH] Fix leak of mValue. b=199184 r=jkeiser sr=jst --- content/html/content/src/nsHTMLTextAreaElement.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); + } }