mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix memory leak in the XDebuggerEvaluationDialog by cleaning its root pane
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user