We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f5ca5 commit 4b33a48Copy full SHA for 4b33a48
src/DiffEngineWord/Program.cs
@@ -1,3 +1,5 @@
1
+using System.Runtime.InteropServices;
2
+
3
static partial class Program
4
{
5
static int Main(string[] args)
@@ -75,6 +77,10 @@ static int Main(string[] args)
75
77
using var process = Process.GetProcessById(processId);
76
78
process.WaitForExit();
79
80
+ // Release COM objects
81
+ Marshal.ReleaseComObject(comparedDoc);
82
+ Marshal.ReleaseComObject(word);
83
84
return 0;
85
}
86
0 commit comments