Reviewed by Ken.
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Nov 2004 17:20:58 +0000 (17:20 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Nov 2004 17:20:58 +0000 (17:20 +0000)
        - fixed <rdar://problem/3879539> leak of NSString after pasting into editable HTML (e.g. Mail)

        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::documentFragmentWithText):
        release mutable copy of string after we're done using it

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

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

index 1d35aed..07d7f26 100644 (file)
@@ -1,3 +1,13 @@
+2004-11-15  John Sullivan  <sullivan@apple.com>
+
+        Reviewed by Ken.
+        
+        - fixed <rdar://problem/3879539> leak of NSString after pasting into editable HTML (e.g. Mail)
+
+        * kwq/KWQKHTMLPart.mm:
+        (KWQKHTMLPart::documentFragmentWithText):
+        release mutable copy of string after we're done using it
+
 2004-11-14  Kevin Decker  <kdecker@apple.com>
 
         Reviewed by mjs.
index 2bdfd1e..9868fc9 100644 (file)
@@ -3878,6 +3878,7 @@ DocumentFragmentImpl *KWQKHTMLPart::documentFragmentWithText(NSString *text)
     [string replaceOccurrencesOfString:@"\r\n" withString:@"\n" options:0 range:NSMakeRange(0, [string length])];
     [string replaceOccurrencesOfString:@"\r" withString:@"\n" options:0 range:NSMakeRange(0, [string length])];
     NSArray *array = [string componentsSeparatedByString:@"\n"];
+    [string release];
     int count = [array count];
     int i;
     for (i = 0; i < count; i++) {