Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty.

git-svn-id: svn://10.0.0.236/trunk@50188 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
1999-10-08 01:49:06 +00:00
parent 9470ef781b
commit c9fbdb8075
152 changed files with 346 additions and 615 deletions

View File

@@ -157,12 +157,12 @@ nsHTMLTextAreaElement::QueryInterface(REFNSIID aIID, void** aInstancePtr)
NS_IMPL_HTML_CONTENT_QUERY_INTERFACE(aIID, aInstancePtr, this)
if (aIID.Equals(kIDOMHTMLTextAreaElementIID)) {
*aInstancePtr = (void*)(nsIDOMHTMLTextAreaElement*) this;
mRefCnt++;
NS_ADDREF_THIS();
return NS_OK;
}
else if (aIID.Equals(kIFormControlIID)) {
*aInstancePtr = (void*)(nsIFormControl*) this;
mRefCnt++;
NS_ADDREF_THIS();
return NS_OK;
}
else if (aIID.Equals(kIFocusableContentIID)) {