mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Null-check pointers that come from AppendReachableList. b=241518 r+sr=bzbarsky
This commit is contained in:
parent
908c583ca2
commit
a6a9722776
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user