[historyView] Dispose SWTCommitList when replaced or discarded
commitcda69df69c16345b03f6f182580ed949eb2ecee0
authorKevin Sawicki <kevin@github.com>
Tue, 28 Feb 2012 22:29:33 +0000 (28 23:29 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 28 Feb 2012 22:29:33 +0000 (28 23:29 +0100)
tree50441878c313b8dd0bd14fbab1ebc89b31a6e422
parentea2d6150091c662aa593be083db3f6b64bc15fd4
[historyView] Dispose SWTCommitList when replaced or discarded

GitHistoryPage and CommitGraphTable now both call dispose
on the generated SWTCommitList when it is either set as the
input or unused when the job completes after the view has
already been disposed.

The SWTCommitList holds 20-30 colors which would be leaked on
each input update without these new calls to dispose.

Bug: 372782
Change-Id: Ia9a9a0523ff09b4ebbc455f3534273291230a5ea
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java