Bug 853560 - Fix nsTArray::SetCapacity callers in dom/plugins to not look at the return value; r=bsmedberg
This commit is contained in:
@@ -1038,11 +1038,7 @@ PluginScriptableObjectParent::AnswerEnumerate(InfallibleTArray<PPluginIdentifier
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!aProperties->SetCapacity(idCount)) {
|
||||
npn->memfree(ids);
|
||||
*aSuccess = false;
|
||||
return true;
|
||||
}
|
||||
aProperties->SetCapacity(idCount);
|
||||
|
||||
JSContext* cx = GetJSContext(instance->GetNPP());
|
||||
JSAutoRequest ar(cx);
|
||||
|
||||
Reference in New Issue
Block a user