Fixed crash due to null pointer...

git-svn-id: svn://10.0.0.236/trunk@12265 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com 1998-10-08 04:14:18 +00:00
parent 1eb3e40724
commit db0dc5b3c1
3 changed files with 9 additions and 3 deletions

View File

@ -707,7 +707,9 @@ CSSStyleSheetImpl::~CSSStyleSheetImpl()
mImportsCollection->DropReference();
NS_RELEASE(mImportsCollection);
}
mOrderedRules->EnumerateForwards(DropStyleSheetReference, nsnull);
if (mOrderedRules.IsNotNull()) {
mOrderedRules->EnumerateForwards(DropStyleSheetReference, nsnull);
}
ClearHash();
}

View File

@ -707,7 +707,9 @@ CSSStyleSheetImpl::~CSSStyleSheetImpl()
mImportsCollection->DropReference();
NS_RELEASE(mImportsCollection);
}
mOrderedRules->EnumerateForwards(DropStyleSheetReference, nsnull);
if (mOrderedRules.IsNotNull()) {
mOrderedRules->EnumerateForwards(DropStyleSheetReference, nsnull);
}
ClearHash();
}

View File

@ -707,7 +707,9 @@ CSSStyleSheetImpl::~CSSStyleSheetImpl()
mImportsCollection->DropReference();
NS_RELEASE(mImportsCollection);
}
mOrderedRules->EnumerateForwards(DropStyleSheetReference, nsnull);
if (mOrderedRules.IsNotNull()) {
mOrderedRules->EnumerateForwards(DropStyleSheetReference, nsnull);
}
ClearHash();
}