From 69313c1d47186735ff0ecafb40911362dcf5bd68 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 12 Nov 2010 12:06:46 +0000 Subject: [PATCH] allow static resources to be gced git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034361 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/search/TestSubScorerFreqs.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucene/src/test/org/apache/lucene/search/TestSubScorerFreqs.java b/lucene/src/test/org/apache/lucene/search/TestSubScorerFreqs.java index cafe41dd620..99ca35fcf80 100644 --- a/lucene/src/test/org/apache/lucene/search/TestSubScorerFreqs.java +++ b/lucene/src/test/org/apache/lucene/search/TestSubScorerFreqs.java @@ -63,7 +63,9 @@ public class TestSubScorerFreqs extends LuceneTestCase { public static void finish() throws Exception { s.getIndexReader().close(); s.close(); + s = null; dir.close(); + dir = null; } private static class CountingCollector extends Collector {