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
Object object;
		Widget widget;
		boolean fullMap;
		boolean exception = false;
		public void run() {
			if(exception) return;
			doUpdateItem(widget,object,fullMap);
		}
		public void handleException(Throwable e) {
			super.handleException(e);
			
			
			exception = true;
		}		
	} 		
	
/**
 * Creates a structured element viewer. The viewer has no input, 
 * no content provider, a default label provider, no sorter, and no filters.
 */
protected StructuredViewer() {
}
/**
 * Adds a listener for double-clicks in this viewer.
 * Has no effect if an identical listener is already registered.