DESCRIPTION

Bug 486531 Resource (GDI-Handles) leak in ImageHyperlink

Fixes a resource leak (GDI Handles) in createDisabledImage() in
org.eclipse.ui.forms.widgets.ImageHyperlink. Replaced redundant code in
setEnabled method. Removed useless if (image==null) and added a missing
redraw() in setImage() so that setImage() works similar to
setText(). Added a JUnit Test for the leak.

Change-Id: Iabb5c5bc345de5e707f89cdc0575f4ba604b8712
Signed-off-by: Anthony Pineda xxx@xxx.xxx
Signed-off-by: Jayvion Booth xxx@xxx.xxx

COMMENTS

author: Brenden Conley
date: 2016-12-20 23:03:16.000000000

Patch Set 3:

Build Started https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/11510/

-------------------------------------
author: Brenden Conley
date: 2016-12-20 23:37:34.000000000

Patch Set 3: Verified+1

Build Successful 

https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/11510/ : SUCCESS

-------------------------------------
author: Jayvion Booth
date: 2016-12-21 05:33:04.000000000

Patch Set 3: Code-Review+2

-------------------------------------
author: Gerrit Code Review
date: 2016-12-21 05:33:16.000000000

Change has been successfully merged into the git repository by Jayvion Booth

-------------------------------------
