]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
nullify fo tree to release data
authorKeiron Liddle <keiron@apache.org>
Tue, 17 Dec 2002 08:32:12 +0000 (08:32 +0000)
committerKeiron Liddle <keiron@apache.org>
Tue, 17 Dec 2002 08:32:12 +0000 (08:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195774 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/FOTreeBuilder.java

index 140646e1b1bac5535ffb8c3a13b04df4ad0b53b3..906bdef1499ac3fab72d2c6abd964a13ffbc63f3 100644 (file)
@@ -127,6 +127,8 @@ public class FOTreeBuilder extends DefaultHandler {
      */
     public void endDocument()
     throws SAXException {
+        rootFObj = null;
+        currentFObj = null;
         if (getLogger().isDebugEnabled())
             getLogger().debug("Parsing of document complete");
         structHandler.endDocument();
@@ -168,8 +170,8 @@ public class FOTreeBuilder extends DefaultHandler {
             fobj.setName(localName);
             // set the user agent for resolving user agent values
             fobj.setUserAgent(userAgent);
-            // set the stream renderer so that appropriate
-            // elements can add pages and handle resolving references
+            // set the structure handler so that appropriate
+            // elements can signal structure events
             fobj.setStructHandler(structHandler);
 
             fobj.handleAttrs(attlist);