Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Dec 2006 18:05:16 +0000 (18:05 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Dec 2006 18:05:16 +0000 (18:05 +0000)
        http://bugs.webkit.org/show_bug.cgi?id=11828
        Fix a leak of NSURLRequest on each update - RetainPtr retains the object itself.

        * platform/network/mac/ResourceRequestMac.mm:
        (WebCore::ResourceRequest::doUpdatePlatformRequest):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18215 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/network/mac/ResourceRequestMac.mm

index 2bd79ec83d9173c74dfe96ee53a51acfbba0b9de..c2bb3fcc22ec88474c9b9c5d1ffbb69468e9ac3d 100644 (file)
@@ -1,3 +1,13 @@
+2006-12-14  Alexey Proskuryakov  <ap@webkit.org>
+
+        Reviewed by Darin.
+
+        http://bugs.webkit.org/show_bug.cgi?id=11828
+        Fix a leak of NSURLRequest on each update - RetainPtr retains the object itself.
+
+        * platform/network/mac/ResourceRequestMac.mm:
+        (WebCore::ResourceRequest::doUpdatePlatformRequest):
+
 2006-12-14  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Zack Rusin.
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);
 }
 
 }