public void removeReferenceListener(ReferenceListener listener) {
		final List<ReferenceListener> list = this.listeners;
		if (list != null) {
			synchronized (list) {
				list.remove(listener);
				if (list.isEmpty()) {
					this.listeners = null;
				}
			}
		}
	}
public void removeReferenceListener ( ReferenceListener listener ) { final List < ReferenceListener > list = this . listeners ; if ( list != null ) { synchronized ( list ) { list . remove ( listener ) ; if ( list . isEmpty ( ) ) { this . listeners = null ; } } } }
Remove listener on reference's release.

@param listener the listener.