You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/01/27 10:43:39 UTC

svn commit: r1236618 - /incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java

Author: andy
Date: Fri Jan 27 09:43:38 2012
New Revision: 1236618

URL: http://svn.apache.org/viewvc?rev=1236618&view=rev
Log:
Null out the dataset member after a test (affects GC on some systems)

Modified:
    incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java

Modified: incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java?rev=1236618&r1=1236617&r2=1236618&view=diff
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java (original)
+++ incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java Fri Jan 27 09:43:38 2012
@@ -97,7 +97,11 @@ public class QueryTestTDB extends EarlTe
     
     @Override public void tearDown()
     { 
-        if ( dataset != null ) dataset.close() ; 
+        if ( dataset != null )
+        {
+            dataset.close() ;
+            dataset = null ;
+        }
     }
     
     public void setupData()