Fixed <rdar://problem/4027928> Tiger_8A394:Acrobat crashes while tried to remove...
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Mar 2005 02:17:59 +0000 (02:17 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Mar 2005 02:17:59 +0000 (02:17 +0000)
The string objects created by KWQHeaderStringFromDictionary() leaked.

        Reviewed by John Louch.

        * kwq/KWQLoader.mm:
        (KWQHeaderStringFromDictionary):

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

WebCore/ChangeLog-2005-08-23
WebCore/kwq/KWQLoader.mm

index 2812b2039bc8efa12d3bc6b3946fd027fba50a7c..3211bd48adb76c89948db5879c997e6a1426fe56 100644 (file)
@@ -1,3 +1,14 @@
+2005-03-01  Richard Williamson   <rjw@apple.com>
+
+       Fixed <rdar://problem/4027928> Tiger_8A394:Acrobat crashes while tried to remove the subscription errors by clicking on "Would you like to remove the subscription" from Tracker details view pane
+
+       The string objects created by KWQHeaderStringFromDictionary() leaked.
+
+        Reviewed by John Louch.
+
+        * kwq/KWQLoader.mm:
+        (KWQHeaderStringFromDictionary):
+
 2005-03-01  Jens Alfke  <jens@apple.com>
 
         Reviewed by Darin.
index 7a833345d05cc5991661fcc8ecedd81cf017e175..49aa965de1829e18576458223f8f75a53b12b560 100644 (file)
@@ -143,7 +143,7 @@ bool KWQServeRequest(Loader *loader, DocLoader *docLoader, TransferJob *job)
 
 NSString *KWQHeaderStringFromDictionary(NSDictionary *headers, int statusCode)
 {
-    NSMutableString *headerString = [[NSMutableString alloc] init];
+    NSMutableString *headerString = [[[NSMutableString alloc] init] autorelease];
     [headerString appendString:[NSString stringWithFormat:@"HTTP/1.0 %d OK\n", statusCode]];
     
     NSEnumerator *e = [headers keyEnumerator];