From 12115f0ec1cd69a7ebf60db26504e26e2e41c8fc Mon Sep 17 00:00:00 2001 From: "vidur%netscape.com" Date: Thu, 16 Jul 1998 21:36:25 +0000 Subject: [PATCH] Fixed memory leak in the case where a view already exists for a frame --- layout/html/base/src/nsHTMLBase.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout/html/base/src/nsHTMLBase.cpp b/layout/html/base/src/nsHTMLBase.cpp index 49668028738..fead72e57e5 100644 --- a/layout/html/base/src/nsHTMLBase.cpp +++ b/layout/html/base/src/nsHTMLBase.cpp @@ -124,6 +124,9 @@ nsHTMLBase::CreateViewForFrame(nsIPresContext* aPresContext, return result; } } + else { + NS_RELEASE(view); + } return NS_OK; }