From f138ee9f28320816517d68e662fd5b92b73e6e60 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 28 Jul 2008 13:52:34 +0000 Subject: [PATCH] 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 --- .../fop/intermediate/AbstractIntermediateTestCase.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5