From 2be74e4108a753c5b5117e4de6b6bbe2c8f01b36 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Sun, 3 Apr 2005 08:08:59 +0000 Subject: re PR libgcj/20727 (double free or corruption) 2005-04-02 Anthony Green PR libgcj/20727 * java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug. From-SVN: r97479 --- libjava/java/nio/DirectByteBufferImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/java/nio/DirectByteBufferImpl.java') diff --git a/libjava/java/nio/DirectByteBufferImpl.java b/libjava/java/nio/DirectByteBufferImpl.java index 8327938..a0599c7 100644 --- a/libjava/java/nio/DirectByteBufferImpl.java +++ b/libjava/java/nio/DirectByteBufferImpl.java @@ -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; } -- cgit v1.1