From 38e40aa2956fd3e6f1cd3968f6b28e4f957ab6a7 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 29 Jan 1999 06:13:55 +0000 Subject: [PATCH] Fixed memory leak of MAP content object in OpenMap() --- content/html/document/src/nsHTMLContentSink.cpp | 2 +- layout/html/document/src/nsHTMLContentSink.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/html/document/src/nsHTMLContentSink.cpp b/content/html/document/src/nsHTMLContentSink.cpp index 624d746379b..4e24200fae0 100644 --- a/content/html/document/src/nsHTMLContentSink.cpp +++ b/content/html/document/src/nsHTMLContentSink.cpp @@ -1852,7 +1852,7 @@ HTMLContentSink::OpenMap(const nsIParserNode& aNode) // Add the map content object to the document rv = mCurrentContext->AddLeaf(map); - + NS_RELEASE(map); return rv; } diff --git a/layout/html/document/src/nsHTMLContentSink.cpp b/layout/html/document/src/nsHTMLContentSink.cpp index 624d746379b..4e24200fae0 100644 --- a/layout/html/document/src/nsHTMLContentSink.cpp +++ b/layout/html/document/src/nsHTMLContentSink.cpp @@ -1852,7 +1852,7 @@ HTMLContentSink::OpenMap(const nsIParserNode& aNode) // Add the map content object to the document rv = mCurrentContext->AddLeaf(map); - + NS_RELEASE(map); return rv; }