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
This commit is contained in:
troy%netscape.com
1998-08-14 20:36:36 +00:00
parent 31b1bd5683
commit bebcdd15aa

View File

@@ -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);
}