Bug 969877 - Stop checking the return value of nsTArray::SetLength in nsIconChannel::MakeInputStream; r=jrmuizel

This commit is contained in:
Ehsan Akhgari 2014-02-10 17:24:01 -05:00
parent 8fbc33c36e
commit 49a04347dd

View File

@ -275,8 +275,7 @@ nsresult nsIconChannel::MakeInputStream(nsIInputStream** _retval, bool nonBlocki
// create our buffer
int32_t bufferCapacity = 2 + [bitmapRep bytesPerPlane];
nsAutoTArray<uint8_t, 3 + 16 * 16 * 5> iconBuffer; // initial size is for 16x16
if (!iconBuffer.SetLength(bufferCapacity))
return NS_ERROR_OUT_OF_MEMORY;
iconBuffer.SetLength(bufferCapacity);
uint8_t* iconBufferPtr = iconBuffer.Elements();