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:
parent
00f07d96bd
commit
2be74e4108
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue