aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2012-01-03 08:31:41 (EST)
committerTomasz Zarna2012-01-03 08:31:41 (EST)
commit82e50cfdeac06c7f1654acfcbbc931f1d77765c4 (patch)
tree47f60a47c38e656d88d34348b426a07cb38e8f65
parentea947b0af755399b826cd73d9b2d550ee6d0a029 (diff)
downloadegit-82e50cfdeac06c7f1654acfcbbc931f1d77765c4.zip
egit-82e50cfdeac06c7f1654acfcbbc931f1d77765c4.tar.gz
egit-82e50cfdeac06c7f1654acfcbbc931f1d77765c4.tar.bz2
Dispose RevWalk in SynchronizeWithMenu#excludeTag(...)refs/changes/10/4910/1
http://wiki.eclipse.org/JGit/User_Guide#Cleaning_up_after_a_revision_walk Change-Id: I0fe7e10e09f8506ca1526fc2c8b919ffd969e888
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/SynchronizeWithMenu.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/SynchronizeWithMenu.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/SynchronizeWithMenu.java
index 01ddfd2..19175f4 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/SynchronizeWithMenu.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/SynchronizeWithMenu.java
@@ -223,6 +223,8 @@ public class SynchronizeWithMenu extends ContributionItem implements
return !(rw.parseAny(tag.getObject()) instanceof RevCommit);
} catch (IOException e) {
Activator.logError(e.getMessage(), e);
+ } finally {
+ rw.dispose();
}
}