Skip to content

Commit 228ea79

Browse files
committed
Implement full disposable pattern.
1 parent 9e7958e commit 228ea79

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Rubberduck.VBEEditor/VBEHost/HostApplicationBase.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public TimeSpan TimedMethodCall(QualifiedMemberName qualifiedMemberName)
5151

5252
public void Dispose()
5353
{
54+
Dispose(true);
55+
}
56+
57+
protected virtual void Dispose(bool disposing)
58+
{
59+
if (!disposing) { return; }
60+
5461
if (Application != null)
5562
{
5663
Marshal.ReleaseComObject(Application);

0 commit comments

Comments
 (0)