#123003 Fixing another leak, this time in OutlinePanelProvider (holding lookup result). mercurial1_4_2fcs
authorpzavadsky@netbeans.org
Thu, 06 Dec 2007 00:25:38 +0000
changeset 19112f47c4cf0863
parent 1910 5bb0d8f1d88e
child 1912 ad4ae98a5c5d
#123003 Fixing another leak, this time in OutlinePanelProvider (holding lookup result).
visualweb.outline/src/org/netbeans/modules/visualweb/outline/OutlinePanelProvider.java
     1.1 --- a/visualweb.outline/src/org/netbeans/modules/visualweb/outline/OutlinePanelProvider.java	Wed Dec 05 07:34:24 2007 +0000
     1.2 +++ b/visualweb.outline/src/org/netbeans/modules/visualweb/outline/OutlinePanelProvider.java	Thu Dec 06 00:25:38 2007 +0000
     1.3 @@ -65,8 +65,9 @@
     1.4  public class OutlinePanelProvider implements NavigatorPanelWithUndo {
     1.5  
     1.6  
     1.7 -    /** Current context to work on. */
     1.8 -    private Lookup.Result<DesignBean> currentContextResult;
     1.9 +    // #123003 Removed memory leak.
    1.10 +//    /** Current context to work on. */
    1.11 +//    private Lookup.Result<DesignBean> currentContextResult;
    1.12  
    1.13      /** Listens on the retrieved <code>Lookup.Result</code>. */
    1.14      private /*final*/ LookupListener outlineLookupListener;// = new OutlineLookupListener();
    1.15 @@ -90,7 +91,7 @@
    1.16      }
    1.17  
    1.18      public void panelActivated(Lookup lookup) {
    1.19 -        currentContextResult = lookup.lookup(new Lookup.Template<DesignBean>(DesignBean.class));
    1.20 +        Lookup.Result<DesignBean> currentContextResult = lookup.lookup(new Lookup.Template<DesignBean>(DesignBean.class));
    1.21  
    1.22          if (isFine()) {
    1.23              fine("panelActivated lookup=" + lookup); // NOI18N