commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r537846 - /jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileObject.java
Date Mon, 14 May 2007 14:00:09 GMT
Author: imario
Date: Mon May 14 07:00:08 2007
New Revision: 537846

URL: http://svn.apache.org/viewvc?view=rev&rev=537846
Log:
VFS-140: nullify content to avoid memory consumption with inactive files - Thanks to Adam
Heath for the patch!

Modified:
    jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileObject.java

Modified: jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileObject.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileObject.java?view=diff&rev=537846&r1=537845&r2=537846
==============================================================================
--- jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileObject.java
(original)
+++ jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileObject.java
Mon May 14 07:00:08 2007
@@ -1093,7 +1093,8 @@
             try
             {
                 content.close();
-            }
+				content = null;
+			}
             catch (FileSystemException e)
             {
                 exc = e;



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message