Fix memory leak in the XDebuggerEvaluationDialog by cleaning its root pane

This commit is contained in:
Sergey Malenkov
2015-10-23 13:11:07 +03:00
parent 0ce0045a69
commit 255c3d923f
@@ -874,11 +874,10 @@ public class DialogWrapperPeerImpl extends DialogWrapperPeer implements FocusTra
super.dispose();
removeAll(); // remove root pane from a component's list
if (rootPane != null) { // Workaround for bug in native code to hold rootPane
try {
ReflectionUtil.resetField(rootPane, "glassPane");
ReflectionUtil.resetField(rootPane, "contentPane");
Disposer.clearOwnFields(rootPane);
rootPane = null;
ReflectionUtil.resetField(this, "windowListener");