mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-01 12:03:08 +00:00
Bug 969877 - Stop checking the return value of nsTArray::SetLength in nsIconChannel::MakeInputStream; r=jrmuizel
This commit is contained in:
parent
8fbc33c36e
commit
49a04347dd
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user