зеркало из https://github.com/mozilla/gecko-dev.git
Got rid of extra release in Item() method of childNodes array of nsGenericHTMLContent
This commit is contained in:
Родитель
92bca3301d
Коммит
8269741cd1
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче