Bug 44827 [Viewers] StructuredViewer's UpdateItemSafeRunnable holds onto last selected element-memory leak
I have a TableViewer that normally displays a list of objects. I clear the list by calling TableViewer.setInput(null). I found that if I initially have a list of objects, select an object, then setInput(null) the TableViewer is still holding onto an instance of the object I last selected. More specifically, it looks like StructuredViewer's UpdateItemSafeRunnable is holding onto the object. The UpdateItemSafeRunnable object should be cleared out after its use.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
private boolean inChange;
	/**
	 * Used while a selection change is in progress on this viewer
	 * to indicates whether the selection should be restored.
	 *
	 * @see #setSelection(ISelection, boolean)
	 */
	private boolean restoreSelection;
	/**
	 * List of double-click state listeners (element type: <code>IDoubleClickListener</code>).
	 * @see #fireDoubleClick
	 */
	private ListenerList doubleClickListeners = new ListenerList(1);
	/**
	 * List of open listeners (element type: <code>ISelectionActivateListener</code>).
	 * @see #fireOpen
	 */
	private ListenerList openListeners = new ListenerList(1);
	/**
	 * List of post selection listeners (element type: <code>ISelectionActivateListener</code>).
	 * @see #firePostSelectionChanged
	 */
	private ListenerList postSelectionChangedListeners = new ListenerList(1);
	
	/**
	 * The safe runnable used to call the label provider.
	 */
	private	UpdateItemSafeRunnable safeUpdateItem = new UpdateItemSafeRunnable();
	
	class UpdateItemSafeRunnable extends SafeRunnable {