Skip to content

Commit 4b33a48

Browse files
committed
Update Program.cs
1 parent 15f5ca5 commit 4b33a48

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DiffEngineWord/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using System.Runtime.InteropServices;
2+
13
static partial class Program
24
{
35
static int Main(string[] args)
@@ -75,6 +77,10 @@ static int Main(string[] args)
7577
using var process = Process.GetProcessById(processId);
7678
process.WaitForExit();
7779

80+
// Release COM objects
81+
Marshal.ReleaseComObject(comparedDoc);
82+
Marshal.ReleaseComObject(word);
83+
7884
return 0;
7985
}
8086

0 commit comments

Comments
 (0)