Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Impl/TextSearch/BackgroundSearch.cs')
-rw-r--r--src/Text/Impl/TextSearch/BackgroundSearch.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Impl/TextSearch/BackgroundSearch.cs b/src/Text/Impl/TextSearch/BackgroundSearch.cs
index f0e6db9..3bbe3ec 100644
--- a/src/Text/Impl/TextSearch/BackgroundSearch.cs
+++ b/src/Text/Impl/TextSearch/BackgroundSearch.cs
@@ -25,7 +25,7 @@ namespace Microsoft.VisualStudio.Text.Find.Implementation
/// Once we've searched a section of the buffer we don't search it again unless it is modified.
/// Even if we get multiple, nearly simultaneous requests to search a section of the buffer, we only search it once.
/// </remarks>
- internal class BackgroundSearch<T> : IDisposable where T : ITag
+ internal sealed class BackgroundSearch<T> : IDisposable where T : ITag
{
private ITextBuffer _buffer;
private readonly ITextSearchService2 _textSearchService;
@@ -429,6 +429,7 @@ namespace Microsoft.VisualStudio.Text.Find.Implementation
public void Dispose()
{
_isDisposed = true;
+ GC.SuppressFinalize(this);
}
#endregion