- Implemented test for explicit destination type in ImageReaderBase.

- Implemented/enabled more test cases
- Fixed broken tests in various readers
This commit is contained in:
Harald Kuhr
2009-10-05 23:29:21 +02:00
parent 2759dc3a99
commit 96b65bc902
5 changed files with 186 additions and 44 deletions
@@ -292,10 +292,9 @@ public class ICOImageReader extends ImageReaderBase {
}
private BufferedImage readBitmap(final DirectoryEntry pEntry) throws IOException {
// TODO: Currently, we have a memory leak, as the values refer to the keys...
BitmapDescriptor descriptor = mDescriptors.get(pEntry);
if (!mDescriptors.containsKey(pEntry)) {
if (descriptor == null || !mDescriptors.containsKey(pEntry)) {
DIBHeader header = getHeader(pEntry);
int offset = pEntry.getOffset() + header.getSize();