]> source.dussan.org Git - jgit.git/commit
Fix ObjectReader resources leak 93/47993/1
authorHugo Arès <hugo.ares@ericsson.com>
Fri, 15 May 2015 19:15:28 +0000 (15:15 -0400)
committerHugo Arès <hugo.ares@ericsson.com>
Fri, 15 May 2015 20:10:49 +0000 (16:10 -0400)
commit9d6507ba4d31d1b78950d3086e43cc5fb6813ccc
treea780014a0f717b595005c52103813dbd527f3c9c
parentb35b09d09aa0346f1b80f722076c6fd57b90f1d8
Fix ObjectReader resources leak

In 77030a5e, AutoClosable was implemented on classes that use release().
This caused a resource leak because the ObjectReader.close method  was
not calling the now deprecated release method, which is the method that
sub classes implements to release resources.

Change-Id: I247651ec8fd7ca9941d256ca46d14cc43cc35c6e
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java