8154179: BasicImageReader activating ImageBufferCache when not used
Reviewed-by: redestad
This commit is contained in:
parent
d83717b035
commit
7057b40f48
@ -183,7 +183,9 @@ public class BasicImageReader implements AutoCloseable {
|
||||
}
|
||||
|
||||
public static void releaseByteBuffer(ByteBuffer buffer) {
|
||||
ImageBufferCache.releaseBuffer(buffer);
|
||||
if (!MAP_ALL) {
|
||||
ImageBufferCache.releaseBuffer(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user