2004-09-06 Dick Porter <dick@ximian.com>
authorDick Porter <dick@acm.org>
Mon, 6 Sep 2004 14:11:55 +0000 (14:11 -0000)
committerDick Porter <dick@acm.org>
Mon, 6 Sep 2004 14:11:55 +0000 (14:11 -0000)
* Process.cs: Make Dispose() actually dispose things.

svn path=/trunk/mcs/; revision=33404

mcs/class/System/System.Diagnostics/Process.cs

index 66e22f14b75e7209195a87e5afaeac86ad9c2cc7..a126d229587face7d69dc9f7a3696bf23b6bdd0c 100755 (executable)
@@ -50,6 +50,11 @@ namespace System.Diagnostics {
                private struct ProcInfo 
                {
                        public IntPtr process_handle;
+                       /* If thread_handle is ever needed for
+                        * something, take out the CloseHandle() in
+                        * the Start_internal icall in
+                        * mono/metadata/process.c
+                        */
                        public IntPtr thread_handle;
                        public int pid; // Contains -GetLastError () on failure.
                        public int tid;
@@ -901,7 +906,7 @@ namespace System.Diagnostics {
                
                protected override void Dispose(bool disposing) {
                        // Check to see if Dispose has already been called.
-                       if(this.disposed) {
+                       if(this.disposed == false) {
                                this.disposed=true;
                                // If this is a call to Dispose,
                                // dispose all managed resources.