re PR libgcj/20727 (double free or corruption)
authorAnthony Green <green@redhat.com>
Sun, 3 Apr 2005 08:08:59 +0000 (08:08 +0000)
committerAnthony Green <green@gcc.gnu.org>
Sun, 3 Apr 2005 08:08:59 +0000 (08:08 +0000)
2005-04-02  Anthony Green  <green@redhat.com>

        PR libgcj/20727
        * java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug.

From-SVN: r97479

libjava/ChangeLog
libjava/java/nio/DirectByteBufferImpl.java

index 291f2546aba27bcb9dda3ce650b9b0f0c2d5b520..4a88ac607bcfa9df0c8cf1def714ecfda7687693 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-02  Anthony Green  <green@redhat.com>
+
+       PR libgcj/20727
+       * java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug.
+
 2005-04-02  Mark Wielaard  <mark@klomp.org>
 
        * javax/naming/directory/BasicAttributes.java (equals): Compare to any
index 83279382a22f0e883aa933d95785c903b54cef39..a0599c722a9ac00d0117752754a54d7c527dc06f 100644 (file)
@@ -117,7 +117,7 @@ abstract class DirectByteBufferImpl extends ByteBuffer
   DirectByteBufferImpl(RawData address, int capacity)
   {
     super(capacity, capacity, 0, -1);
-    this.owner = this;
+    this.owner = null;
     this.address = address;
   }