mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 22:53:08 +00:00
MLK: fixed nsICSSDeclaration leak, bug=15380, r=kipp
This commit is contained in:
parent
126d4cbb56
commit
6b91420f5a
@ -1304,6 +1304,7 @@ nsGenericHTMLElement::AttributeToString(nsIAtom* aAttribute,
|
||||
nsICSSDeclaration* decl = cssRule->GetDeclaration();
|
||||
if (nsnull != decl) {
|
||||
decl->ToString(aResult);
|
||||
NS_RELEASE(decl);
|
||||
}
|
||||
NS_RELEASE(cssRule);
|
||||
}
|
||||
|
@ -1304,6 +1304,7 @@ nsGenericHTMLElement::AttributeToString(nsIAtom* aAttribute,
|
||||
nsICSSDeclaration* decl = cssRule->GetDeclaration();
|
||||
if (nsnull != decl) {
|
||||
decl->ToString(aResult);
|
||||
NS_RELEASE(decl);
|
||||
}
|
||||
NS_RELEASE(cssRule);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user