You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2001/08/16 03:14:23 UTC
cvs commit: xml-cocoon2/src/org/apache/cocoon/generation ServletGenerator.java
vgritsenko 01/08/15 18:14:23
Modified: src/org/apache/cocoon/generation ServletGenerator.java
Log:
patching memory leaks
Revision Changes Path
1.3 +11 -1 xml-cocoon2/src/org/apache/cocoon/generation/ServletGenerator.java
Index: ServletGenerator.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/ServletGenerator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ServletGenerator.java 2001/05/22 14:41:22 1.2
+++ ServletGenerator.java 2001/08/16 01:14:22 1.3
@@ -22,7 +22,7 @@
/**
*
* @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
- * @version CVS $Revision: 1.2 $ $Date: 2001/05/22 14:41:22 $
+ * @version CVS $Revision: 1.3 $ $Date: 2001/08/16 01:14:22 $
*/
public abstract class ServletGenerator extends ComposerGenerator
implements Composable {
@@ -38,5 +38,15 @@
this.request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
this.response = (Response) objectModel.get(Constants.RESPONSE_OBJECT);
this.context = (Context) objectModel.get(Constants.CONTEXT_OBJECT);
+ }
+
+ /**
+ * Recycle the generator by removing references
+ */
+ public void recycle() {
+ super.recycle();
+ this.request = null;
+ this.response = null;
+ this.context = null;
}
}
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org