Null-check pointers that come from AppendReachableList. b=241518 r+sr=bzbarsky

This commit is contained in:
dbaron%dbaron.org 2005-12-06 05:51:18 +00:00
parent 908c583ca2
commit a6a9722776

View File

@ -5090,7 +5090,8 @@ nsDOMClassInfo::MarkReachablePreservedWrappers(nsIDOMGCParticipant *aParticipant
nsCOMArray<nsIDOMGCParticipant> reachable;
SCCIndex->AppendReachableList(reachable);
for (PRInt32 i = 0, i_end = reachable.Count(); i < i_end; ++i) {
MarkReachablePreservedWrappers(reachable[i], cx, arg);
if (reachable[i])
MarkReachablePreservedWrappers(reachable[i], cx, arg);
}
for (PreservedWrapperEntry *pwe = entry->first; pwe; pwe = pwe->next) {