You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mk...@apache.org on 2004/08/30 17:41:55 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/utils XMLReaderManager.java

mkwan       2004/08/30 08:41:55

  Modified:    java/src/org/apache/xml/utils XMLReaderManager.java
  Log:
  Fix a memory leak problem described in bugzilla 28082.
  
  Revision  Changes    Path
  1.3       +3 -3      xml-xalan/java/src/org/apache/xml/utils/XMLReaderManager.java
  
  Index: XMLReaderManager.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/XMLReaderManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XMLReaderManager.java	17 Feb 2004 04:21:14 -0000	1.2
  +++ XMLReaderManager.java	30 Aug 2004 15:41:55 -0000	1.3
  @@ -151,9 +151,9 @@
        */
       public synchronized void releaseXMLReader(XMLReader reader) {
           // If the reader that's being released is the cached reader
  -        // for this thread, mark it as no longer being in use.
  +        // for this thread, remove it from the m_isUse list.
           if (m_readers.get() == reader) {
  -            m_inUse.put(reader, Boolean.FALSE);
  +            m_inUse.remove(reader);
           }
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org