directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r171078 - /directory/apacheds/trunk/core/project.xml /directory/apacheds/trunk/main/project.xml /directory/asn1/trunk/codec/src/java/org/apache/asn1/codec/mina/Asn1CodecEncoder.java
Date Fri, 20 May 2005 08:17:26 GMT
Author: trustin
Date: Fri May 20 01:17:25 2005
New Revision: 171078

URL: http://svn.apache.org/viewcvs?rev=171078&view=rev
Log:
Fixed: DIRMINA-41 and its sideeffects.


Modified:
    directory/apacheds/trunk/core/project.xml
    directory/apacheds/trunk/main/project.xml
    directory/asn1/trunk/codec/src/java/org/apache/asn1/codec/mina/Asn1CodecEncoder.java

Modified: directory/apacheds/trunk/core/project.xml
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/project.xml?rev=171078&r1=171077&r2=171078&view=diff
==============================================================================
--- directory/apacheds/trunk/core/project.xml (original)
+++ directory/apacheds/trunk/core/project.xml Fri May 20 01:17:25 2005
@@ -97,7 +97,7 @@
     <dependency>
       <groupId>directory-asn1</groupId>
       <artifactId>asn1-codec</artifactId>
-      <version>0.3</version>
+      <version>0.3.1-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>directory-shared</groupId>
@@ -112,7 +112,7 @@
     <dependency>
       <groupId>directory-network</groupId>
       <artifactId>mina</artifactId>
-      <version>0.7</version>
+      <version>0.7.2-SNAPSHOT</version>
     </dependency>
 
     <!-- The Eve Maven Plugin -->

Modified: directory/apacheds/trunk/main/project.xml
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/main/project.xml?rev=171078&r1=171077&r2=171078&view=diff
==============================================================================
--- directory/apacheds/trunk/main/project.xml (original)
+++ directory/apacheds/trunk/main/project.xml Fri May 20 01:17:25 2005
@@ -111,7 +111,7 @@
     <dependency>
       <groupId>directory-asn1</groupId>
       <artifactId>asn1-codec</artifactId>
-      <version>0.3</version>
+      <version>0.3.1-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>directory-shared</groupId>
@@ -126,7 +126,7 @@
     <dependency>
       <groupId>directory-network</groupId>
       <artifactId>mina</artifactId>
-      <version>0.7</version>
+      <version>0.7.2-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>${pom.groupId}</groupId>
@@ -157,4 +157,4 @@
 
 </project>
 
-                           
\ No newline at end of file
+                           

Modified: directory/asn1/trunk/codec/src/java/org/apache/asn1/codec/mina/Asn1CodecEncoder.java
URL: http://svn.apache.org/viewcvs/directory/asn1/trunk/codec/src/java/org/apache/asn1/codec/mina/Asn1CodecEncoder.java?rev=171078&r1=171077&r2=171078&view=diff
==============================================================================
--- directory/asn1/trunk/codec/src/java/org/apache/asn1/codec/mina/Asn1CodecEncoder.java (original)
+++ directory/asn1/trunk/codec/src/java/org/apache/asn1/codec/mina/Asn1CodecEncoder.java Fri
May 20 01:17:25 2005
@@ -58,7 +58,9 @@
             if( encoded instanceof java.nio.ByteBuffer )
             {
                 java.nio.ByteBuffer buf = ( java.nio.ByteBuffer ) encoded;
-                encOut.write( ByteBuffer.wrap( buf ) );
+                ByteBuffer wrappedBuf = ByteBuffer.wrap( buf );
+                wrappedBuf.acquire();  // acquire once more to prvent leak
+                encOut.write( wrappedBuf );
             }
             else if( encoded instanceof Object[] )
             {



Mime
View raw message