Return-Path: Delivered-To: apmail-xerces-commits-archive@www.apache.org Received: (qmail 48619 invoked from network); 8 May 2008 02:38:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2008 02:38:13 -0000 Received: (qmail 98096 invoked by uid 500); 8 May 2008 02:38:15 -0000 Delivered-To: apmail-xerces-commits-archive@xerces.apache.org Received: (qmail 98076 invoked by uid 500); 8 May 2008 02:38:15 -0000 Mailing-List: contact commits-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@xerces.apache.org Received: (qmail 98062 invoked by uid 99); 8 May 2008 02:38:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 19:38:15 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 02:37:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0F5212388A26; Wed, 7 May 2008 19:37:53 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r654395 - /xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java Date: Thu, 08 May 2008 02:37:52 -0000 To: commits@xerces.apache.org From: mrglavas@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080508023753.0F5212388A26@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mrglavas Date: Wed May 7 19:37:52 2008 New Revision: 654395 URL: http://svn.apache.org/viewvc?rev=654395&view=rev Log: Before returning control to the user, disconnect the schema loader and other objects from the XMLReader. This should allow for better garbage collection. Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java?rev=654395&r1=654394&r2=654395&view=diff ============================================================================== --- xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java (original) +++ xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java Wed May 7 19:37:52 2008 @@ -510,6 +510,15 @@ catch (SAXException se) { return null; } + // Disconnect the schema loader and other objects from the XMLReader + try { + parser.setContentHandler(null); + parser.setErrorHandler(null); + } + // Ignore any exceptions thrown by the XMLReader. Old versions of SAX + // required an XMLReader to throw a NullPointerException if an attempt + // to set a handler to null was made. + catch (Exception e) {} schemaRootDoc = fXSContentHandler.getDocument(); if (schemaRootDoc == null) { // something went wrong right off the hop --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org For additional commands, e-mail: commits-help@xerces.apache.org