Reviewed by Richard.
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Nov 2004 19:52:26 +0000 (19:52 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Nov 2004 19:52:26 +0000 (19:52 +0000)
        - fixed <rdar://problem/3881929> 32 byte leak in editingStyle() in KHTMLPart (one-time only)

        * khtml/khtml_part.cpp:
        (editingStyle):
        delete the list we created when we're done with it

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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/khtml_part.cpp

index 3791ca7..8b4f9b2 100644 (file)
@@ -1,3 +1,13 @@
+2004-11-16  John Sullivan  <sullivan@apple.com>
+
+        Reviewed by Richard.
+        
+        - fixed <rdar://problem/3881929> 32 byte leak in editingStyle() in KHTMLPart (one-time only)
+
+        * khtml/khtml_part.cpp:
+        (editingStyle):
+        delete the list we created when we're done with it
+
 2004-11-16  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by John
index cb27635..13cfc82 100644 (file)
@@ -5518,6 +5518,7 @@ static CSSStyleDeclarationImpl *editingStyle()
         QPtrList<CSSProperty> *propList = new QPtrList<CSSProperty>;
         propList->setAutoDelete(true);
         editingStyle = new CSSStyleDeclarationImpl(0, propList);
+        delete propList;
         editingStyle->setCssText("word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;");
     }
     return editingStyle;