Skip to content

Commit 2c9d991

Browse files
committed
Fixes issue #621
1 parent 36e69d0 commit 2c9d991

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

RetailCoder.VBE/UI/CodeInspections/CodeInspectionsDockablePresenter.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,24 @@ private void _inspector_Reset(object sender, EventArgs e)
216216
Control.Cursor = Cursors.Default;
217217
});
218218
}
219+
220+
protected override void Dispose(bool disposing)
221+
{
222+
if (!disposing) { return; }
223+
224+
_inspector.IssuesFound -= _inspector_IssuesFound;
225+
_inspector.Reset -= _inspector_Reset;
226+
_inspector.Parsing -= _inspector_Parsing;
227+
_inspector.ParseCompleted -= _inspector_ParseCompleted;
228+
229+
Control.RefreshCodeInspections -= Control_RefreshCodeInspections;
230+
Control.NavigateCodeIssue -= Control_NavigateCodeIssue;
231+
Control.QuickFix -= Control_QuickFix;
232+
Control.CopyResults -= Control_CopyResultsToClipboard;
233+
Control.Cancel -= Control_Cancel;
234+
Control.SortColumn -= SortColumn;
235+
236+
base.Dispose(true);
237+
}
219238
}
220239
}

RubberduckTests/UnitTesting/EngineTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System.Collections;
22
using System.Collections.Generic;
3-
using System.IO;
43
using System.Linq;
5-
using System.Reflection;
64
using Microsoft.Vbe.Interop;
75
using Microsoft.VisualStudio.TestTools.UnitTesting;
86
using Rubberduck.UnitTesting;

0 commit comments

Comments
 (0)