Bug 853560 - Fix nsTArray::SetCapacity callers in dom/plugins to not look at the return value; r=bsmedberg

This commit is contained in:
Ehsan Akhgari
2013-03-21 14:43:04 -04:00
parent 1356fbcd17
commit e69df6e0cd
2 changed files with 2 additions and 10 deletions

View File

@@ -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);