cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r559450 - /cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java
Date Wed, 25 Jul 2007 13:21:23 GMT
Author: gkossakowski
Date: Wed Jul 25 06:21:15 2007
New Revision: 559450

URL: http://svn.apache.org/viewvc?view=rev&rev=559450
Log:
Wrongly performed cleanup in JXTemplateGenerator.

Modified:
    cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java

Modified: cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java?view=diff&rev=559450&r1=559449&r2=559450
==============================================================================
--- cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java
(original)
+++ cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java
Wed Jul 25 06:21:15 2007
@@ -98,6 +98,10 @@
             this.manager.release(this.scriptManager);
             this.scriptManager = null;
         }
+        if (this.newObjectModel != null) {
+            this.manager.release(this.newObjectModel);
+            this.newObjectModel = null;
+        }
         super.dispose();
     }
 
@@ -106,7 +110,6 @@
      */
     public void recycle() {
         this.startDocument = null;
-        this.newObjectModel = null;
         this.namespaces = null;
         this.definitions = null;
         super.recycle();



Mime
View raw message