Dispose of any instantiated images when the label provider is
commit21fe73b3c4a6449a5c59ac621c2abda3159823f2
authorRemy Suen <remysuen@ca.ibm.com>
Sun, 18 Apr 2010 17:53:24 +0000 (18 13:53 -0400)
committerChris Aniszczyk <caniszczyk@gmail.com>
Tue, 20 Apr 2010 14:59:24 +0000 (20 09:59 -0500)
tree00fc8da6be9f58afd93688793a1a6cee2ed63468
parent3236fe48a1b7b54124b6a11c187b3f1910a60e06
Dispose of any instantiated images when the label provider is
disposed (bug 309601).

ImageDescriptors creates new SWT images every time
createImage() is invoked. Images need to be explicitly disposed
when they are no longer needed or the application will eventually
run out of resources. A map is now kept of all the images that
have been instantiated so clean-up can be performed when the
label provider is disposed.

Change-Id: Ie2530aac18ac6c70011ec3bba15278fc253599c2
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesViewLabelProvider.java