properly addref attr stylesheet before returning
git-svn-id: svn://10.0.0.236/trunk@9923 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -379,6 +379,9 @@ NS_IMETHODIMP nsHTMLDocument::GetAttributeStyleSheet(nsIHTMLStyleSheet** aResult
|
||||
if (nsnull == mAttrStyleSheet) {
|
||||
return NS_ERROR_NOT_AVAILABLE; // probably not the right error...
|
||||
}
|
||||
else {
|
||||
NS_ADDREF(mAttrStyleSheet);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user