From 59997b00ebbcedf08ba805becba01d4f2de43f86 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Tue, 5 Oct 1999 00:05:38 +0000 Subject: [PATCH] r=vidur; fixed a memory of a script content object git-svn-id: svn://10.0.0.236/trunk@49755 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLContentSink.cpp | 1 + mozilla/layout/html/document/src/nsHTMLContentSink.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index 6574b927e1d..f3facde1f16 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -3385,6 +3385,7 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode) NS_RELEASE(text); } } + NS_RELEASE(element); // Don't include script loading and evaluation in the stopwatch // that is measuring content creation time diff --git a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp index 6574b927e1d..f3facde1f16 100644 --- a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp @@ -3385,6 +3385,7 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode) NS_RELEASE(text); } } + NS_RELEASE(element); // Don't include script loading and evaluation in the stopwatch // that is measuring content creation time