[hg] main-silver: #226565: Solving memory leaks.

  • From:
  • To: , ,
  • Subject: [hg] main-silver: #226565: Solving memory leaks.
  • Date: Wed, 27 Feb 2013 17:39:45 -0800

changeset 55edf326bb27 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/55edf326bb27
description:
        #226565: Solving memory leaks.

diffstat:

 
debugger.jpda.ant/antsrc/org/netbeans/modules/debugger/jpda/ant/JPDAStart.java
                |  2 +-
 
debugger.jpda/src/org/netbeans/modules/debugger/jpda/actions/RunIntoMethodActionProvider.java
 |  4 ++++
 
spi.debugger.ui/src/org/netbeans/modules/debugger/ui/views/ViewModelListener.java
             |  2 ++
 
web.debug/src/org/netbeans/modules/web/debug/actions/JspToggleBreakpointActionProvider.java
   |  2 ++
 4 files changed, 9 insertions(+), 1 deletions(-)

diffs (51 lines):

diff --git 
a/debugger.jpda.ant/antsrc/org/netbeans/modules/debugger/jpda/ant/JPDAStart.java
 
b/debugger.jpda.ant/antsrc/org/netbeans/modules/debugger/jpda/ant/JPDAStart.java
--- 
a/debugger.jpda.ant/antsrc/org/netbeans/modules/debugger/jpda/ant/JPDAStart.java
+++ 
b/debugger.jpda.ant/antsrc/org/netbeans/modules/debugger/jpda/ant/JPDAStart.java
@@ -148,7 +148,7 @@
     /** The class debugger should stop in, or null. */
     private String                  stopClassName = null;
     private String                  listeningCP = null;
-    private RequestProcessor        rp = new RequestProcessor("JPDAStart", 
1);
+    private RequestProcessor        rp = new RequestProcessor("JPDAStart", 
5);
 
     
     // properties 
..............................................................
diff --git 
a/debugger.jpda/src/org/netbeans/modules/debugger/jpda/actions/RunIntoMethodActionProvider.java
 
b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/actions/RunIntoMethodActionProvider.java
--- 
a/debugger.jpda/src/org/netbeans/modules/debugger/jpda/actions/RunIntoMethodActionProvider.java
+++ 
b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/actions/RunIntoMethodActionProvider.java
@@ -136,6 +136,10 @@
     private void destroy () {
         debugger.removePropertyChangeListener (JPDADebuggerImpl.PROP_STATE, 
this);
         EditorContextBridge.getContext().removePropertyChangeListener (this);
+        if (lastActionsManager != null) {
+            
lastActionsManager.removeActionsManagerListener(ActionsManagerListener.PROP_ACTION_STATE_CHANGED,
 this);
+            lastActionsManager = null;
+        }
     }
     
     static ActionsManager getCurrentActionsManager () {
diff --git 
a/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/views/ViewModelListener.java
 
b/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/views/ViewModelListener.java
--- 
a/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/views/ViewModelListener.java
+++ 
b/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/views/ViewModelListener.java
@@ -291,6 +291,8 @@
                 columnModels = null;
                 mm = null;
                 asynchModelFilters = null;
+                tableRenderers = null;
+                tableRendererFilters = null;
                 //rp = null;
                 sessionProviders = null;
                 currentSession = null;
diff --git 
a/web.debug/src/org/netbeans/modules/web/debug/actions/JspToggleBreakpointActionProvider.java
 
b/web.debug/src/org/netbeans/modules/web/debug/actions/JspToggleBreakpointActionProvider.java
--- 
a/web.debug/src/org/netbeans/modules/web/debug/actions/JspToggleBreakpointActionProvider.java
+++ 
b/web.debug/src/org/netbeans/modules/web/debug/actions/JspToggleBreakpointActionProvider.java
@@ -83,7 +83,9 @@
     }
     
     private void destroy () {
+        if (debugger != null) {
         debugger.removePropertyChangeListener (debugger.PROP_STATE, this);
+        }
         Context.removePropertyChangeListener (this);
     }
     

[hg] main-silver: #226565: Solving memory leaks.

mentlicher 02/28/2013

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close