8154179: BasicImageReader activating ImageBufferCache when not used

Reviewed-by: redestad
This commit is contained in:
Jim Laskey 2016-04-25 09:57:56 -03:00
parent d83717b035
commit 7057b40f48

View File

@ -183,7 +183,9 @@ public class BasicImageReader implements AutoCloseable {
} }
public static void releaseByteBuffer(ByteBuffer buffer) { public static void releaseByteBuffer(ByteBuffer buffer) {
ImageBufferCache.releaseBuffer(buffer); if (!MAP_ALL) {
ImageBufferCache.releaseBuffer(buffer);
}
} }
public String getName() { public String getName() {