You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by co...@apache.org on 2003/06/10 16:01:24 UTC
cvs commit: ant/src/main/org/apache/tools/ant AntClassLoader.java
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