lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [35/50] [abbrv] lucenenet git commit: Bug (memory leak): Dispose() should cascade to Dispose() to other objects and release its own resources.
Date Tue, 23 Aug 2016 23:18:28 GMT
Bug (memory leak): Dispose() should cascade to Dispose() to other objects and release its own
resources.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/9124e03e
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/9124e03e
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/9124e03e

Branch: refs/heads/analysis-work
Commit: 9124e03e9240b2bb21b985526466c4e1f9674d6b
Parents: 132da59
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Aug 20 19:15:42 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Aug 21 11:26:48 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Analysis/Tokenizer.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9124e03e/src/Lucene.Net.Core/Analysis/Tokenizer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Analysis/Tokenizer.cs b/src/Lucene.Net.Core/Analysis/Tokenizer.cs
index b0215be..a354310 100644
--- a/src/Lucene.Net.Core/Analysis/Tokenizer.cs
+++ b/src/Lucene.Net.Core/Analysis/Tokenizer.cs
@@ -73,7 +73,7 @@ namespace Lucene.Net.Analysis
         /// </summary>
         public override void Dispose()
         {
-            input.Close();
+            input.Dispose();
             // LUCENE-2387: don't hold onto Reader after close, so
             // GC can reclaim
             InputPending = ILLEGAL_STATE_READER;


Mime
View raw message