Bug 635227 - crash [@ nsJSContext::CycleCollectNow], r=gal, a=hb

This commit is contained in:
Olli Pettay 2011-02-19 14:27:56 +02:00
parent a7f8b6dea2
commit 230f55841b

View File

@ -3280,7 +3280,9 @@ nsJSContext::GarbageCollectNow()
sPendingLoadCount = 0;
sLoadingInProgress = PR_FALSE;
nsContentUtils::XPConnect()->GarbageCollect();
if (nsContentUtils::XPConnect()) {
nsContentUtils::XPConnect()->GarbageCollect();
}
}
//Static