Changeset 10894 in josm
- Timestamp:
- 2016-08-24T23:23:20+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ListenerList.java
r10824 r10894 150 150 WeakListener<T> weakLink = iterator.next(); 151 151 T l = weakLink.listener.get(); 152 if (l == null) {153 iterator.remove();154 } else {152 if (l != null) { 153 // cleanup during add() should be enough to not cause memory leaks 154 // therefore, we ignore null listeners. 155 155 eventFirerer.fire(l); 156 156 }
Note:
See TracChangeset
for help on using the changeset viewer.