From: <pj...@us...> - 2008-08-09 21:53:48
|
Revision: 5125 http://jython.svn.sourceforge.net/jython/?rev=5125&view=rev Author: pjenvey Date: 2008-08-09 21:53:44 +0000 (Sat, 09 Aug 2008) Log Message: ----------- fix remove() not fully zeroing out the end of the array, causing a small memory leak. fixes test_deque.test_weakref Modified Paths: -------------- branches/asm/src/org/python/core/AbstractArray.java Modified: branches/asm/src/org/python/core/AbstractArray.java =================================================================== --- branches/asm/src/org/python/core/AbstractArray.java 2008-08-09 17:35:06 UTC (rev 5124) +++ branches/asm/src/org/python/core/AbstractArray.java 2008-08-09 21:53:44 UTC (rev 5125) @@ -377,7 +377,7 @@ } System.arraycopy(base, stop, base, start, this.size - stop); this.size = this.size - nRemove; - clearRangeInternal(this.size, this.size + nRemove - 1); + clearRangeInternal(this.size, this.size + nRemove); setArray(base); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |