Got rid of extra release in Item() method of childNodes array of nsGenericHTMLContent
git-svn-id: svn://10.0.0.236/trunk@9735 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2891,7 +2891,6 @@ nsChildContentList::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
||||
content = (nsIContent *)mArray.ElementAt(aIndex);
|
||||
if (nsnull != content) {
|
||||
res = content->QueryInterface(kIDOMNodeIID, (void**)aReturn);
|
||||
NS_RELEASE(content);
|
||||
}
|
||||
else {
|
||||
*aReturn = nsnull;
|
||||
|
||||
@@ -2891,7 +2891,6 @@ nsChildContentList::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
||||
content = (nsIContent *)mArray.ElementAt(aIndex);
|
||||
if (nsnull != content) {
|
||||
res = content->QueryInterface(kIDOMNodeIID, (void**)aReturn);
|
||||
NS_RELEASE(content);
|
||||
}
|
||||
else {
|
||||
*aReturn = nsnull;
|
||||
|
||||
@@ -57,7 +57,7 @@ function rotate2() {
|
||||
tparent.childNodes[0].insertBefore(img2, tparent.childNodes[0].childNodes[0]);
|
||||
}
|
||||
var int1 = setInterval(rotate, 1000, para, img1);
|
||||
//var int2 = setInterval(rotate2, 1000)
|
||||
var int2 = setInterval(rotate2, 1000)
|
||||
|
||||
</SCRIPT>
|
||||
</BODY>
|
||||
|
||||
Reference in New Issue
Block a user