Community
Participate
Working Groups
Build ID: I20080617-2000 Steps To Reproduce: GridTableViewer have two not garbage collected fields. cachedRow rowHeaderLabelProvider these fields were cross referenced. More information: Please add this orverride method if there are no problem. /** * @see org.eclipse.jface.viewers.StructuredViewer#handleDispose(org.eclipse.swt.events.DisposeEvent) */ protected void handleDispose(DisposeEvent event) { super.handleDispose(event); this.cachedRow = null; this.rowHeaderLabelProvider = null; }
Hi all, in my patch, i have change the method with: @Override protected void handleDispose(final DisposeEvent event) { super.handleDispose(event); cachedRow = null; rowHeaderLabelProvider = null; getGrid().setRedraw(false); getGrid().disposeAllItems(); getGrid().clearItems(); } I'll do some tests for verify if there is a memory leak Mirko
Pa
Improve dispose performace and create a snippet test.
Test done and bug fixed