Changeset 17397 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-12-08T11:03:48+01:00 (4 years ago)
Author:
GerdP
Message:

see #19885: memory leak with "temporary" objects in validator and actions

  • always call way.setNodes(null)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r17333 r17397  
    713713            // we only need to change the way if its node list was really modified
    714714            cmds.add(new ChangeNodesCommand(selectedSegment.way, wnew.getNodes()));
    715             wnew.setNodes(null); // see #19885
    716         }
     715        }
     716        wnew.setNodes(null); // see #19885
    717717        Command c = new SequenceCommand(tr("Extrude Way"), cmds);
    718718        UndoRedoHandler.getInstance().add(c);
Note: See TracChangeset for help on using the changeset viewer.