Author: peterreilly
Date: Fri Oct 20 15:35:44 2006
New Revision: 466283

URL: http://svn.apache.org/viewvc?view=rev&rev=466283
Log:
Free the realThing with UE is finished with it
(fixes since last look at this allows this)

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/UnknownElement.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/UnknownElement.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/UnknownElement.java?view=diff&rev=466283&r1=466282&r2=466283
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/UnknownElement.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/UnknownElement.java Fri Oct 20 
15:35:44 2006
@@ -281,13 +281,11 @@
             ((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;
-        // 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);
 
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to