MLK: fixed nsICSSDeclaration leak, bug=15380, r=kipp

This commit is contained in:
beard%netscape.com 1999-10-30 20:17:40 +00:00
parent 126d4cbb56
commit 6b91420f5a
2 changed files with 2 additions and 0 deletions

View File

@ -1304,6 +1304,7 @@ nsGenericHTMLElement::AttributeToString(nsIAtom* aAttribute,
nsICSSDeclaration* decl = cssRule->GetDeclaration();
if (nsnull != decl) {
decl->ToString(aResult);
NS_RELEASE(decl);
}
NS_RELEASE(cssRule);
}

View File

@ -1304,6 +1304,7 @@ nsGenericHTMLElement::AttributeToString(nsIAtom* aAttribute,
nsICSSDeclaration* decl = cssRule->GetDeclaration();
if (nsnull != decl) {
decl->ToString(aResult);
NS_RELEASE(decl);
}
NS_RELEASE(cssRule);
}