Added call to GC.SupressFinalize() in CFObject.Dispose()
authorJeffrey Stedfast <jeff@xamarin.com>
Wed, 9 May 2012 18:46:38 +0000 (14:46 -0400)
committerJeffrey Stedfast <jeff@xamarin.com>
Wed, 9 May 2012 18:47:20 +0000 (14:47 -0400)
mcs/class/System/System.Net/MacProxy.cs

index 3e487f2fc6952ff30088be383e88ca9d5d02b0df..f213b0d29e156704baef9450a37558a6cf578564 100644 (file)
@@ -88,7 +88,7 @@ namespace System.Net
                        CFRelease (Handle);
                }
 
-               void Dispose (bool disposing)
+               protected virtual void Dispose (bool disposing)
                {
                        if (Handle != IntPtr.Zero) {
                                Release ();
@@ -99,6 +99,7 @@ namespace System.Net
                public void Dispose ()
                {
                        Dispose (true);
+                       GC.SuppressFinalize (this);
                }
        }