Ignore:
Timestamp:
2016-08-20T19:40:44+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13394 - fix some memory leaks (patch by Gerd Petermann)

File:
1 edited

Legend:

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

    r10657 r10861  
    193193    }
    194194
     195    @Override
     196    public void destroy() {
     197        model.clear();
     198        super.destroy();
     199    }
     200
    195201    public void enableRecentRelations() {
    196202        recentRelationsAction.enableArrow();
     
    392398        RelationListModel(DefaultListSelectionModel selectionModel) {
    393399            this.selectionModel = selectionModel;
     400        }
     401
     402        public void clear() {
     403            relations.clear();
     404            if (filteredRelations != null)
     405                filteredRelations.clear();
     406            filter = null;
    394407        }
    395408
Note: See TracChangeset for help on using the changeset viewer.