Fix #1435 and #1436 by reverting 7f7bf304b0

Different PooledByteBufs can have the reference to the same PooledChunk (and its ByteBuffer), so it's incorrect not to create a duplicate.
This commit is contained in:
Trustin Lee 2013-06-11 00:57:23 +09:00
parent 3ce9ab2e72
commit bf5960e9eb

View File

@ -71,7 +71,7 @@ final class PooledUnsafeDirectByteBuf extends PooledByteBuf<ByteBuffer> {
@Override
protected ByteBuffer newInternalNioBuffer(ByteBuffer memory) {
return memory;
return memory.duplicate();
}
@Override