Sync LLImageJ2C for upcoming fix with LL
parent
29c6277460
commit
a5cb8fdbee
|
|
@ -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() ;
|
||||
|
|
|
|||
Loading…
Reference in New Issue