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,8 +183,10 @@ public class BasicImageReader implements AutoCloseable {
}
public static void releaseByteBuffer(ByteBuffer buffer) {
if (!MAP_ALL) {
ImageBufferCache.releaseBuffer(buffer);
}
}
public String getName() {
return name;