re PR libgcj/20727 (double free or corruption)

2005-04-02  Anthony Green  <green@redhat.com>

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

From-SVN: r97479
This commit is contained in:
Anthony Green 2005-04-03 08:08:59 +00:00 committed by Anthony Green
parent 00f07d96bd
commit 2be74e4108
2 changed files with 6 additions and 1 deletions

View 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

View 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;
}