Unreachable code introduced by addition of exceptions to out of memory handling

meow-7.2.2
Beq 2018-10-03 10:13:00 +01:00
parent cae30e03df
commit ae6015ac3e
1 changed files with 3 additions and 1 deletions

View File

@ -386,7 +386,9 @@ boolean LLImageJPEG::encodeEmptyOutputBuffer( j_compress_ptr cinfo )
{
self->setLastError("Out of memory in LLImageJPEG::encodeEmptyOutputBuffer( j_compress_ptr cinfo )");
LLTHROW(LLContinueError("Out of memory in LLImageJPEG::encodeEmptyOutputBuffer( j_compress_ptr cinfo )"));
return false;
//<FS:Beq> Fix unreachable code
// return false;
//</FS:Beq>
}
memcpy( new_buffer, self->mOutputBuffer, self->mOutputBufferSize ); /* Flawfinder: ignore */
delete[] self->mOutputBuffer;