More crash fixes. Fuck you OpenJPEG. Fuck you where it hurts.

This commit is contained in:
CharleyLevenque
2010-08-26 22:34:10 -04:00
parent 15d74dc41a
commit 8c23e3bdea
3 changed files with 16 additions and 7 deletions

View File

@@ -252,7 +252,9 @@ BOOL LLImageJ2C::updateData()
}
else
{
res = mImpl->getMetadata(*this);
if (mImpl)
res = mImpl->getMetadata(*this);
else res = FALSE;
}
if (res)
@@ -480,7 +482,8 @@ BOOL LLImageJ2C::validate(U8 *data, U32 file_size)
}
else
{
res = mImpl->getMetadata(*this);
if (mImpl)
res = mImpl->getMetadata(*this);
}
}