Changeset 5513 in josm


Ignore:
Timestamp:
2012-09-16T09:34:03+02:00 (12 years ago)
Author:
jttt
Message:

Fix #7980: Out of Heap Memory

Location:
trunk/src/org/openstreetmap/josm/gui/layer
Files:
2 edited

Legend:

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

    r5464 r5513  
    315315    @Override
    316316    public void destroy() {
     317        super.destroy();
    317318        adjustAction.destroy();
    318319    }
  • trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java

    r5459 r5513  
    166166            startGrabberThreads();
    167167        }
    168        
     168
    169169        Main.pref.addPreferenceChangeListener(this);
    170170    }
     
    257257    @Override
    258258    public void destroy() {
     259        super.destroy();
    259260        cancelGrabberThreads(false);
    260261        Main.pref.removePreferenceChangeListener(this);
     
    975976    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    976977        int sfv = in.readInt();
    977         if (sfv != serializeFormatVersion) {
     978        if (sfv != serializeFormatVersion)
    978979            throw new InvalidClassException(tr("Unsupported WMS file version; found {0}, expected {1}", sfv, serializeFormatVersion));
    979         }
    980980        autoDownloadEnabled = false;
    981981        dax = in.readInt();
     
    986986        info.setExtendedUrl((String)in.readObject());
    987987        images = (GeorefImage[][])in.readObject();
    988        
     988
    989989        for (GeorefImage[] imgs : images) {
    990990            for (GeorefImage img : imgs) {
     
    994994            }
    995995        }
    996        
     996
    997997        settingsChanged = true;
    998998        if (Main.isDisplayingMapView()) {
Note: See TracChangeset for help on using the changeset viewer.