Browse Source

Free the realThing with UE is finished with it

(fixes since last look at this allows this)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@466283 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
e563725d1b
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      src/main/org/apache/tools/ant/UnknownElement.java

+ 4
- 6
src/main/org/apache/tools/ant/UnknownElement.java View File

@@ -281,13 +281,11 @@ public class UnknownElement extends Task {
((Task) realThing).execute(); ((Task) realThing).execute();
} }


// the task will not be reused ( a new init() will be called )
// Let GC do its job
// Finished executing the task, null it to allow
// GC do its job
// If this UE is used again, a new "realthing" will be made
realThing = null; realThing = null;
// FIXME: the following should be done as well, but is
// commented out for the moment as the unit tests fail
// if it is done
//getWrapper().setProxy(null);
getWrapper().setProxy(null);


} }




Loading…
Cancel
Save