diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2015-10-07 18:40:19 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2015-10-07 18:40:19 +0300 |
commit | 5e581cbab82e9e2c0739b44e701766837f11419a (patch) | |
tree | 77db8169b4df0cd4f05e05352e4c9104d6071e67 | |
parent | dc2b9d97b8dc59cf9a84c3918fe7d40bc75c7cd2 (diff) |
Don't dispose control in the finalizer
Controls must be explicitly disposed.
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Control.cs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Control.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Control.cs index 2cd9d466c5..ee58994619 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Control.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Control.cs @@ -48,11 +48,6 @@ namespace MonoDevelop.Components this.nativeWidget = widget; } - ~Control () - { - Dispose (false); - } - protected virtual object CreateNativeWidget () { throw new NotSupportedException (); @@ -128,7 +123,6 @@ namespace MonoDevelop.Components ((NSView)nativeWidget).Dispose (); #endif - GC.SuppressFinalize (this); Dispose (true); } |