From bebcdd15aa4af62fcb3ee620cb9b7b64a98213dc Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 14 Aug 1998 20:36:36 +0000 Subject: [PATCH] Changed NS_NewHTMLInputFile() to release reference to onput text and input browse content objects git-svn-id: svn://10.0.0.236/trunk@8029 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/forms/src/nsInputFile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/layout/html/forms/src/nsInputFile.cpp b/mozilla/layout/html/forms/src/nsInputFile.cpp index 6bd25f36ee0..107d78d893d 100644 --- a/mozilla/layout/html/forms/src/nsInputFile.cpp +++ b/mozilla/layout/html/forms/src/nsInputFile.cpp @@ -310,11 +310,14 @@ NS_NewHTMLInputFile(nsIHTMLContent** aInstancePtrResult, return NS_ERROR_OUT_OF_MEMORY; } inputFile->AppendChild(child, PR_FALSE); + NS_RELEASE(child); + status = NS_NewHTMLInputBrowse(&child, aTag, aManager); if (NS_OK != status) { return NS_ERROR_OUT_OF_MEMORY; } inputFile->AppendChild(child, PR_FALSE); + NS_RELEASE(child); return inputFile->QueryInterface(kIHTMLContentIID, (void**) aInstancePtrResult); }