xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ce...@apache.org
Subject cvs commit: xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2 Locale.java
Date Sat, 27 Nov 2004 19:00:45 GMT
cezar       2004/11/27 11:00:45

  Modified:    v2/src/newstore2/org/apache/xmlbeans/impl/newstore2
                        Locale.java
  Log:
  Fix for release references to Locale and STL to get garbage collected.
  
  Revision  Changes    Path
  1.34      +5 -0      xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Locale.java
  
  Index: Locale.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Locale.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- Locale.java	9 Nov 2004 20:31:43 -0000	1.33
  +++ Locale.java	27 Nov 2004 19:00:45 -0000	1.34
  @@ -2493,6 +2493,8 @@
   
               props.setEncoding( _piccolo.getEncoding() );
               props.setVersion ( _piccolo.getVersion() );
  +
  +            super.postLoad(c);
           }
   
           private Piccolo _piccolo;
  @@ -2725,6 +2727,9 @@
   
           void postLoad ( Cur c )
           {
  +            // fix garbage collection of Locale -> Xobj -> STL
  +            _locale = null;
  +            _context = null;
           }
   
           public Cur load ( Locale l, InputSource is, XmlOptions options )
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message