Ignore:
Timestamp:
2010-08-31T08:51:05+02:00 (14 years ago)
Author:
jttt
Message:

Memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java

    r22854 r22902  
    153153        public void destroy() {
    154154                cancelGrabberThreads(false);
     155                Main.pref.removePreferenceChangeListener(this);
    155156        }
    156157
     
    640641                                ois.close();
    641642                                fis.close();
    642                             for (GeorefImage[] imgs : images) {
    643                                 for (GeorefImage img : imgs) {
    644                                     if (img != null) {
    645                                                 img.setLayer(WMSLayer.this);
    646                                     }
    647                                 }
    648                             }
     643                                for (GeorefImage[] imgs : images) {
     644                                        for (GeorefImage img : imgs) {
     645                                                if (img != null) {
     646                                                        img.setLayer(WMSLayer.this);
     647                                                }
     648                                        }
     649                                }
    649650                                settingsChanged = true;
    650651                                mv.repaint();
Note: See TracChangeset for help on using the changeset viewer.