Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDick Porter <dick@acm.org>2006-05-16 20:57:41 +0400
committerDick Porter <dick@acm.org>2006-05-16 20:57:41 +0400
commitd2f7f87ac498f69b99dd4388d7e4633fe2502bac (patch)
tree0076bbf43a1b1094df381f6ae8cd7c24bc053e23 /mcs/class/System/System.Diagnostics/Process.cs
parent513fe6af88acc639d952407262104d040396ba10 (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.cs5
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;