From: Jeremias Maerki Date: Mon, 28 Jul 2008 13:52:34 +0000 (+0000) Subject: Release intermediate file ASAP to avoid high memory consumption. X-Git-Tag: fop-1_0~115^2~165 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f138ee9f28320816517d68e662fd5b92b73e6e60;p=xmlgraphics-fop.git Release intermediate file ASAP to avoid high memory consumption. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@680360 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java b/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java index 19b1a4a9d..63e293afe 100644 --- a/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java +++ b/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java @@ -96,6 +96,12 @@ public abstract class AbstractIntermediateTestCase extends XMLTestCase { } } + /** {@inheritDoc} */ + protected void tearDown() throws Exception { + this.intermediate = null; //Release memory + super.tearDown(); + } + /** * Returns the file extension for the intermediate file format. * @return the file extension