ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant AntClassLoader.java
Date Tue, 10 Jun 2003 14:01:24 GMT
conor       2003/06/10 07:01:24

  Modified:    src/main/org/apache/tools/ant AntClassLoader.java
  Log:
  Resolve memory leak when ejecuteJava cleans up AntClassLoader
  
  PR:	20264
  
  Revision  Changes    Path
  1.69      +4 -2      ant/src/main/org/apache/tools/ant/AntClassLoader.java
  
  Index: AntClassLoader.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/AntClassLoader.java,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -w -u -r1.68 -r1.69
  --- AntClassLoader.java	7 Mar 2003 14:43:17 -0000	1.68
  +++ AntClassLoader.java	10 Jun 2003 14:01:24 -0000	1.69
  @@ -1225,6 +1225,10 @@
               }
           }
           zipFiles = new Hashtable();
  +        if (project != null) {
  +            project.removeBuildListener(this);
  +        }
  +        project = null;
       }
   
       /**
  @@ -1242,8 +1246,6 @@
        * @param event the buildFinished event
        */
       public void buildFinished(BuildEvent event) {
  -        project.removeBuildListener(this);
  -        project = null;
           cleanup();
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message