Ignore:
Timestamp:
2012-08-24T13:41:33+02:00 (12 years ago)
Author:
donvip
Message:

[josm_plugins] See #josm7980 - Fix memory leaks in alignways, fixAdresses, measurement, routing, turnlanes and waypoint_search plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/FixAddressesPlugin.java

    r27338 r28624  
    2727 */
    2828public class FixAddressesPlugin extends Plugin {
    29         private static IncompleteAddressesDialog incompleteAddrDlg;
    3029        private static FixAddressesPreferences preferences;
    3130
     
    5554        @Override
    5655        public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
    57                 // TODO Auto-generated method stub
    58                 super.mapFrameInitialized(oldFrame, newFrame);
    59 
    6056                if (newFrame != null) {
    61                         incompleteAddrDlg = new IncompleteAddressesDialog();
    6257                        FixAddressesMapMode faMode = new FixAddressesMapMode(Main.map);
    6358                        IconToggleButton faModeButton = new IconToggleButton(faMode);
    6459                        faModeButton.setVisible(true);
    65                         newFrame.addToggleDialog(incompleteAddrDlg);
     60                        newFrame.addToggleDialog(new IncompleteAddressesDialog());
    6661                }
    6762        }
     
    7166                // TODO Auto-generated method stub
    7267                return getPreferences();
    73         }
    74 
    75         /**
    76          * @return the incompleteAddrDlg
    77          */
    78         protected static IncompleteAddressesDialog getIncompleteAddrDlg() {
    79                 return incompleteAddrDlg;
    8068        }
    8169
Note: See TracChangeset for help on using the changeset viewer.