Skip to content

Commit 5ab108d

Browse files
committed
Bug 575983 - Stop disposing colors in swt
Don't dispose in CBanner Change-Id: Idd891cdc369a62beaad4a8803592ab70e613bf03 Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/185561 Tested-by: Platform Bot <[email protected]> Reviewed-by: Alexander Kurtakov <[email protected]>
1 parent 2120ba1 commit 5ab108d

File tree

1 file changed

+1
-2
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom

1 file changed

+1
-2
lines changed

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2016 IBM Corporation and others.
2+
* Copyright (c) 2000, 2021 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -355,7 +355,6 @@ void onPaint(GC gc) {
355355
gc.setForeground(color);
356356
gc.drawPolyline(line2);
357357
gc.drawPolyline(line3);
358-
color.dispose();
359358

360359
// draw tail fading to background
361360
int x1 = Math.max(0, curveStart - CURVE_TAIL);

0 commit comments

Comments
 (0)