Changeset 17418 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-12-18T07:34:27+01:00 (4 years ago)
Author:
GerdP
Message:

see #17184: Memory leaks

  • remove listener when layer is removed (regression of r13608)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r17188 r17418  
    905905            fireRefresh();
    906906            ensureActiveSelected();
     907            if (layer instanceof AbstractTileSourceLayer<?>) {
     908                ((AbstractTileSourceLayer<?>) layer).getDisplaySettings().removeSettingsChangeListener(LayerListDialog.getInstance());
     909            }
     910
    907911        }
    908912
Note: See TracChangeset for help on using the changeset viewer.