Skip to content

Commit ac9e204

Browse files
committed
Fixed disposing of COM objects.
1 parent ecd68b4 commit ac9e204

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SymbolReader/ComDisposableWrapper.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ protected virtual void Dispose(bool disposing)
1919
{
2020
if (obj != null)
2121
{
22-
Marshal.ReleaseComObject(obj);
22+
if (disposing)
23+
{
24+
Marshal.ReleaseComObject(obj);
25+
}
2326

2427
obj = null;
2528
}

0 commit comments

Comments
 (0)