db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattba...@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer RsIterator.java
Date Sun, 02 Feb 2003 03:32:03 GMT
mattbaird    2003/02/01 19:32:03

  Modified:    src/java/org/apache/ojb/broker/accesslayer RsIterator.java
  Log:
  Add finalize to release leaked resources.
  
  Revision  Changes    Path
  1.28      +9 -1      jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java
  
  Index: RsIterator.java
  ===================================================================
  RCS file: /home/cvs//jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- RsIterator.java	15 Jan 2003 10:43:28 -0000	1.27
  +++ RsIterator.java	2 Feb 2003 03:32:02 -0000	1.28
  @@ -677,5 +677,13 @@
       {
           return m_broker.serviceConnectionManager().getConnectionDescriptor();
       }
  +
  +	/**
  +	 * safety just in case someone leaks.
  +	 */
  +	protected void finalize()
  +	{
  +		releaseDbResources();
  +	}
   }
   
  
  
  

Mime
View raw message