Changeset 17365 in josm for trunk/src/org


Ignore:
Timestamp:
2020-11-27T10:36:45+01:00 (4 years ago)
Author:
GerdP
Message:

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

  • revert fix of counter of relations, it is used in a popup and should in fact count all relations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/SplitWayCommand.java

    r17362 r17365  
    452452            }
    453453
     454            numberOfRelations++;
    454455            boolean isSimpleCase = true;
    455456
     
    562563                }
    563564            }
    564             if (!isSimpleCase)
    565                 numberOfRelations++;
    566565            if (c != null && isSimpleCase) {
    567566                if (!r.getMembers().equals(c.getMembers())) {
    568567                    commandList.add(new ChangeMembersCommand(r, new ArrayList<>(c.getMembers())));
    569                     numberOfRelations++;
    570568                }
    571569                c.setMembers(null); // see #19885
Note: See TracChangeset for help on using the changeset viewer.