Commit 5489911
committed
Add missing image to shared images and resolve resource leak
Currently, a shared image descriptor for a missing image is provided via
the ImageDescriptor class. But images created for that descriptor still
have to be maintained manually, e.g., by a resource manager or manual
disposal. In some cases, this is not done correctly, leading to
non-disposed resources.
This change adds a shared instance of the missing image that may be
reused wherever needed. It is adopted for placeholders, which by now
created missing images but never cleaned them up. That resource leak is
resolved with the this change.1 parent 301653e commit 5489911
File tree
3 files changed
+12
-2
lines changed- bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui
- internal
3 files changed
+12
-2
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
837 | 844 | | |
838 | 845 | | |
839 | 846 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
4038 | 4039 | | |
4039 | 4040 | | |
4040 | 4041 | | |
4041 | | - | |
| 4042 | + | |
4042 | 4043 | | |
4043 | 4044 | | |
4044 | 4045 | | |
| |||
4055 | 4056 | | |
4056 | 4057 | | |
4057 | 4058 | | |
4058 | | - | |
| 4059 | + | |
4059 | 4060 | | |
4060 | 4061 | | |
4061 | 4062 | | |
| |||
0 commit comments