mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-01 00:00:02 -04:00
- Implemented test for explicit destination type in ImageReaderBase.
- Implemented/enabled more test cases - Fixed broken tests in various readers
This commit is contained in:
Executable → Regular
+1
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user