[System.Web.Services] Make sure we don't keep results forever when doing async reques...
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 13 Dec 2011 22:10:48 +0000 (23:10 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 13 Dec 2011 22:12:57 +0000 (23:12 +0100)
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs

index 61d54ca4df7b4e81e6a86d0bf698b07accdbf5ab..cc5b01e66e900691d3d013d8da7813f3e89a5423 100644 (file)
@@ -409,6 +409,7 @@ namespace System.Web.Services.Protocols
                        InvokeAsyncInfo info = (InvokeAsyncInfo) ar.AsyncState;
                        SoapWebClientAsyncResult sar = (SoapWebClientAsyncResult) ar;
                        InvokeCompletedEventArgs args = new InvokeCompletedEventArgs (sar.Exception, false, info.UserState, (object[]) sar.Result);
+                       UnregisterMapping (ar.AsyncState);
                        if (info.Context != null)
                                info.Context.Send (info.Callback, args);
                        else