Commit 5bfc6ee
committed
Make disposal of BufferedGraphicsSource more robust #875
The call to GC.drawImage() may throw an IllegalArgumentException when
dealing with fractional scaling. In such a case, not all SWT resources
are destroyed, leading to memory leaks.
Any exception thrown by this operation is caught and logged, in order to
allow the disposal to finish gracefully.
Closes #8751 parent e319539 commit 5bfc6ee
File tree
1 file changed
+10
-3
lines changed- org.eclipse.draw2d/src/org/eclipse/draw2d
1 file changed
+10
-3
lines changedLines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
0 commit comments