Sync LLImageJ2C for upcoming fix with LL

Ansariel 2017-12-06 16:57:08 +01:00
parent 29c6277460
commit a5cb8fdbee
1 changed files with 0 additions and 5 deletions

View File

@ -374,11 +374,6 @@ bool LLImageJ2C::loadAndValidate(const std::string &filename)
else
{
U8 *data = (U8*)ALLOCATE_MEM(LLImageBase::getPrivatePool(), file_size);
if(!data)
{
LL_WARNS() << "couldn't allocate memory for loading file: " << filename << " size: " << file_size << LL_ENDL;
return FALSE;
}
apr_size_t bytes_read = file_size;
apr_status_t s = apr_file_read(apr_file, data, &bytes_read); // modifies bytes_read
infile.close() ;