diff options
author | Dick Porter <dick@acm.org> | 2006-05-16 20:57:41 +0400 |
---|---|---|
committer | Dick Porter <dick@acm.org> | 2006-05-16 20:57:41 +0400 |
commit | d2f7f87ac498f69b99dd4388d7e4633fe2502bac (patch) | |
tree | 0076bbf43a1b1094df381f6ae8cd7c24bc053e23 /mcs/class/System/System.Diagnostics/Process.cs | |
parent | 513fe6af88acc639d952407262104d040396ba10 (diff) |
2006-05-16 Dick Porter <dick@ximian.com>
* Process.cs: Dispose the handle from a destructor too
svn path=/trunk/mcs/; revision=60744
Diffstat (limited to 'mcs/class/System/System.Diagnostics/Process.cs')
-rw-r--r-- | mcs/class/System/System.Diagnostics/Process.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/class/System/System.Diagnostics/Process.cs b/mcs/class/System/System.Diagnostics/Process.cs index 816f94fbe76..25cbfe9eae4 100644 --- a/mcs/class/System/System.Diagnostics/Process.cs +++ b/mcs/class/System/System.Diagnostics/Process.cs @@ -1119,6 +1119,11 @@ namespace System.Diagnostics { base.Dispose (disposing); } + ~Process () + { + Dispose (false); + } + static void CBOnExit (object state, bool unused) { Process p = (Process) state; |