From 2b95de033b69d1408e11173dec8c4fadd7d1619d Mon Sep 17 00:00:00 2001 From: "blythe%netscape.com" Date: Thu, 24 Jan 2002 18:28:25 +0000 Subject: [PATCH] Fix bug 120422 r=dbaron,rs=hyatt Do not delete ref counted object. --- content/html/style/src/nsCSSStyleRule.cpp | 2 +- layout/style/nsCSSStyleRule.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/html/style/src/nsCSSStyleRule.cpp b/content/html/style/src/nsCSSStyleRule.cpp index 2fb5b2530f4..dd331b92730 100644 --- a/content/html/style/src/nsCSSStyleRule.cpp +++ b/content/html/style/src/nsCSSStyleRule.cpp @@ -1482,7 +1482,7 @@ CSSStyleRuleImpl::~CSSStyleRuleImpl(void) } if (nsnull != mImportantRule) { mImportantRule->mSheet = nsnull; - delete mImportantRule; + NS_RELEASE(mImportantRule); mImportantRule = nsnull; } if (nsnull != mDOMDeclaration) { diff --git a/layout/style/nsCSSStyleRule.cpp b/layout/style/nsCSSStyleRule.cpp index 2fb5b2530f4..dd331b92730 100644 --- a/layout/style/nsCSSStyleRule.cpp +++ b/layout/style/nsCSSStyleRule.cpp @@ -1482,7 +1482,7 @@ CSSStyleRuleImpl::~CSSStyleRuleImpl(void) } if (nsnull != mImportantRule) { mImportantRule->mSheet = nsnull; - delete mImportantRule; + NS_RELEASE(mImportantRule); mImportantRule = nsnull; } if (nsnull != mDOMDeclaration) {