2006-10-24 Anders Carlsson <acarlsson@apple.com>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Oct 2006 23:49:20 +0000 (23:49 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Oct 2006 23:49:20 +0000 (23:49 +0000)
        Reviewed by Maciej.

        * platform/network/mac/ResourceLoaderMac.mm:
        (WebCore::ResourceLoader::start):
        Don't retain the header dictionary.

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

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

index 59c37a6673479afdbfbd0b3798550d9e4d662a3a..dc0a844c3899abc351a73ca113b09c51f237b0fa 100644 (file)
@@ -1,3 +1,11 @@
+2006-10-24  Anders Carlsson  <acarlsson@apple.com>
+
+        Reviewed by Maciej.
+
+        * platform/network/mac/ResourceLoaderMac.mm:
+        (WebCore::ResourceLoader::start):
+        Don't retain the header dictionary.
+
 2006-10-24  Geoffrey Garen  <ggaren@apple.com>
 
         Reviewed by Anders.
index bb0f476046ce1418d3ecda559c150ad9189299d4..dc5d922c8c5e0dbfe5019da5d1837b753d1f63a7 100644 (file)
@@ -81,7 +81,7 @@ bool ResourceLoader::start(DocLoader* docLoader)
     NSDictionary* headerDict = nil;
     
     if (!d->m_request.httpHeaderFields().isEmpty())
-        headerDict = [[NSDictionary _webcore_dictionaryWithHeaderMap:d->m_request.httpHeaderFields()] retain];
+        headerDict = [NSDictionary _webcore_dictionaryWithHeaderMap:d->m_request.httpHeaderFields()];
 
     if (!postData().elements().isEmpty())
         handle = [bridge startLoadingResource:resourceLoader withMethod:method() URL:url().getNSURL() customHeaders:headerDict postData:arrayFromFormData(postData())];