@Override public void dispose() { super.dispose(); if (cinematic != null) { Object o = cinematic.getEventData(MODEL_CHANNELS, model); if (o != null) { Collection<AnimChannel> values = ((HashMap<Integer, AnimChannel>) o).values(); while (values.remove(channel)); if (values.isEmpty()) { cinematic.removeEventData(MODEL_CHANNELS, model); } } cinematic = null; channel = null; } } }
@Override public void dispose() { super.dispose(); if (cinematic != null) { Object o = cinematic.getEventData(MODEL_CHANNELS, model); if (o != null) { Collection<AnimChannel> values = ((HashMap<Integer, AnimChannel>) o).values(); while (values.remove(channel)); if (values.isEmpty()) { cinematic.removeEventData(MODEL_CHANNELS, model); } } cinematic = null; channel = null; } } }