You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ni...@apache.org on 2006/03/22 18:53:04 UTC
svn commit: r387902 -
/directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java
Author: niklas
Date: Wed Mar 22 09:53:01 2006
New Revision: 387902
URL: http://svn.apache.org/viewcvs?rev=387902&view=rev
Log:
Added a call to init() on the created UnexpandableByteBuffer so that its refCount is set to 1 when wrapping an NIO ByteBuffer.
Modified:
directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java
Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java
URL: http://svn.apache.org/viewcvs/directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java?rev=387902&r1=387901&r2=387902&view=diff
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java (original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java Wed Mar 22 09:53:01 2006
@@ -236,6 +236,7 @@
ensureNotDisposed();
PooledByteBuffer buf = allocateContainer();
buf.init( new UnexpandableByteBuffer( nioBuffer ), false );
+ buf.buf.init();
buf.setPooled( false );
return buf;
}