Skip to content

Commit

Permalink
Fix improper implementation of DiffMargin.Dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Mar 19, 2013
1 parent d2440fb commit 04edbd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Diff/DiffMargin.cs
Expand Up @@ -11,7 +11,7 @@
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Editor.OptionsExtensionMethods;

public class DiffMargin : IWpfTextViewMargin
public sealed class DiffMargin : IWpfTextViewMargin
{
public const string MarginName = "GitDiffMargin";

Expand Down Expand Up @@ -136,12 +136,12 @@ public ITextViewMargin GetTextViewMargin(string marginName)

public void Dispose()
{
GC.SuppressFinalize(this);
_viewModel.Cleanup();
_isDisposed = true;
GC.SuppressFinalize(this);
}

protected virtual void OnBrushesChanged(EventArgs e)
private void OnBrushesChanged(EventArgs e)
{
var t = BrushesChanged;
if (t != null)
Expand Down

0 comments on commit 04edbd0

Please sign in to comment.