Take care of reviewer comment (bug 373219).
git-svn-id: svn://10.0.0.236/trunk@221606 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
58e840f211
commit
f83d032e9f
@ -1532,7 +1532,7 @@ nsCycleCollector::Suspect(nsISupports *n)
|
||||
if (!NS_IsMainThread())
|
||||
Fault("trying to suspect from non-main thread");
|
||||
|
||||
if (!n || !nsCycleCollector_isScanSafe(n))
|
||||
if (!nsCycleCollector_isScanSafe(n))
|
||||
Fault("suspected a non-scansafe pointer", n);
|
||||
|
||||
if (nsCycleCollector_shouldSuppress(n))
|
||||
@ -1764,6 +1764,9 @@ nsCycleCollector_isScanSafe(nsISupports *s)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
if (!s)
|
||||
return PR_FALSE;
|
||||
|
||||
nsCOMPtr<nsCycleCollectionParticipant> cp = do_QueryInterface(s, &rv);
|
||||
if (NS_FAILED(rv)) {
|
||||
sCollector.mStats.mFailedQI++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user