Reviewed by Darin.
[WebKit-https.git] / WebCore / platform / network / mac / ResourceRequestMac.mm
index c84cdcb13336e36961b577a071140fd52a859c72..d2844bb3d3008f09eaf60c3c04f8e9be2c558730 100644 (file)
@@ -90,7 +90,7 @@ void ResourceRequest::doUpdatePlatformRequest()
     if (formData && !formData->isEmpty())
         WebCore::setHTTPBody(nsRequest, formData);
     
-    m_nsRequest = nsRequest;
+    m_nsRequest.adopt(nsRequest);
 }
 
 }