]> source.dussan.org Git - jgit.git/commit
Fix WindowCursor memory leak. 04/48904/1
authorHugo Arès <hugo.ares@ericsson.com>
Thu, 28 May 2015 18:21:03 +0000 (14:21 -0400)
committerHugo Arès <hugo.ares@ericsson.com>
Thu, 28 May 2015 19:14:25 +0000 (15:14 -0400)
commit27128b3e01a9c97f1d2549ded0d381f469f0aee8
tree380fd9c52320823e4dee7b7aaf9f3cab10efda3b
parentebfd62433a58d23af221adfdffed56d9274f4268
Fix WindowCursor memory leak.

ObjectReader release method was replaced by close method but
WindowCursor was still implementing release method.

To prevent the same mistake again, make ObjectReader close method
abstract to force sub classes to implement it.

Change-Id: I50d0d1d19a26e306fd0dba77b246a95a44fd6584
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/PackFileTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/UnpackedObjectTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackInputStream.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/UnpackedObject.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/WindowCursor.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java