Skip to content

Commit

Permalink
Hopeful fix for #373
Browse files Browse the repository at this point in the history
  • Loading branch information
dahall committed Jan 29, 2023
1 parent e0685fd commit 716b9e4
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Core/InteropServices/ComStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,8 @@ void IStream.Clone(out IStream ppstm)
/// <remarks>This method is not a member in IStream.</remarks>
public override void Close()
{
if (netStream is not null)
{
netStream.Close();
}
else
{
comStream.Commit(0 /*STGC_DEFAULT*/);
// Marshal.ReleaseComObject(TheIStream); // Investigate this because we cannot release an IStream to the stash file
}
netStream?.Close();
try { comStream?.Commit(0 /*STGC_DEFAULT*/); } catch { }
GC.SuppressFinalize(this);
}

Expand Down

0 comments on commit 716b9e4

Please sign in to comment.