- Timestamp:
- 2024-01-19T14:24:48+01:00 (10 months ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer/geoimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r18871 r18947 117 117 private UpdateImageThread updateImageThreadInstance; 118 118 119 private boolean destroyed; 120 119 121 private class UpdateImageThread extends Thread { 120 122 private boolean restart; … … 620 622 @Override 621 623 public void destroy() { 622 removeMouseListener(imgMouseListener); 623 removeMouseWheelListener(imgMouseListener); 624 removeMouseMotionListener(imgMouseListener); 625 Config.getPref().removePreferenceChangeListener(this); 626 if (imageProcessor instanceof ImageryFilterSettings) { 627 ((ImageryFilterSettings) imageProcessor).removeFilterChangeListener(this); 628 } 624 if (!destroyed) { 625 removeMouseListener(imgMouseListener); 626 removeMouseWheelListener(imgMouseListener); 627 removeMouseMotionListener(imgMouseListener); 628 Config.getPref().removePreferenceChangeListener(this); 629 if (imageProcessor instanceof ImageryFilterSettings) { 630 ((ImageryFilterSettings) imageProcessor).removeFilterChangeListener(this); 631 } 632 } 633 destroyed = true; 629 634 } 630 635 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r18946 r18947 411 411 cancelLoadingImage(); 412 412 super.destroy(); 413 // make sure that Image Display is destroyed here, it might not be a component 414 imgDisplay.destroy(); 413 415 // Ensure that this dialog is removed from memory 414 416 destroyInstance();
Note:
See TracChangeset
for help on using the changeset viewer.