Ignore:
Timestamp:
2013-08-03T02:06:28+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8919 - fix memory leaks, including one introduced with r5982

File:
1 edited

Legend:

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

    r6100 r6107  
    210210    public MouseEvent lastMEvent = new MouseEvent(this, 0, 0, 0, 0, 0, 0, false); // In case somebody reads it before first mouse move
    211211
    212     private LinkedList<MapViewPaintable> temporaryLayers = new LinkedList<MapViewPaintable>();
     212    private final LinkedList<MapViewPaintable> temporaryLayers = new LinkedList<MapViewPaintable>();
    213213
    214214    private BufferedImage nonChangedLayersBuffer;
     
    954954            mapMover.destroy();
    955955        }
     956        activeLayer = null;
     957        changedLayer = null;
     958        editLayer = null;
     959        layers.clear();
     960        nonChangedLayers.clear();
     961        temporaryLayers.clear();
    956962    }
    957963
Note: See TracChangeset for help on using the changeset viewer.