diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java index 55ffac7c5..1dbdc98ce 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java @@ -1284,13 +1284,13 @@ public class RevWalk implements Iterable, AutoCloseable { * All RevFlag instances are also invalidated, and must not be reused. */ public void dispose() { - reader.release(); + reader.close(); freeFlags = APP_FLAGS; delayFreeFlags = 0; retainOnReset = 0; carryFlags = UNINTERESTING; objects.clear(); - reader.release(); + reader.close(); roots.clear(); queue = new DateRevQueue(); pending = new StartGenerator(this);