use iter.remove to avoid ConcurrentModificationException

This commit is contained in:
Eric House 2014-05-15 06:43:59 -07:00
parent 6ce47f8208
commit 891af6a84d

View file

@ -430,7 +430,7 @@ public class LocUtils {
WeakReference<Menu> ref = iter.next();
if ( null == ref.get() ) {
DbgUtils.logf( "LocUtils.pareMenus(): removing menu as ref is gone" );
s_menuSets.remove( ref );
iter.remove();
}
}
}