Ignore:
Timestamp:
2010-01-17T16:37:24+01:00 (14 years ago)
Author:
jttt
Message:

Partially fix situation after last layer removal - most objects still stay in memory but at least there are less references and forgotten listeners

File:
1 edited

Legend:

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

    r2869 r2871  
    187187        for (int i = 0; i < toolBarActions.getComponentCount(); ++i)
    188188            if (toolBarActions.getComponent(i) instanceof Destroyable) {
    189                 ((Destroyable)toolBarActions).destroy();
     189                ((Destroyable)toolBarActions.getComponent(i)).destroy();
    190190            }
    191191        for (int i = 0; i < toolBarToggle.getComponentCount(); ++i)
    192192            if (toolBarToggle.getComponent(i) instanceof Destroyable) {
    193                 ((Destroyable)toolBarToggle).destroy();
     193                ((Destroyable)toolBarToggle.getComponent(i)).destroy();
    194194            }
    195195
Note: See TracChangeset for help on using the changeset viewer.