Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 1234 invoked from network); 22 Mar 2006 17:53:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Mar 2006 17:53:27 -0000 Received: (qmail 51534 invoked by uid 500); 22 Mar 2006 17:53:27 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 51482 invoked by uid 500); 22 Mar 2006 17:53:26 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 51471 invoked by uid 99); 22 Mar 2006 17:53:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2006 09:53:26 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 22 Mar 2006 09:53:25 -0800 Received: (qmail 1076 invoked by uid 65534); 22 Mar 2006 17:53:04 -0000 Message-ID: <20060322175304.1074.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r387902 - /directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java Date: Wed, 22 Mar 2006 17:53:04 -0000 To: commits@directory.apache.org From: niklas@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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; }