Reviewed by Geoff.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Aug 2007 03:56:54 +0000 (03:56 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Aug 2007 03:56:54 +0000 (03:56 +0000)
        <rdar://problem/5389696> leak of 32-byte NSData object (and more?) in WebIconDatabase code path with each refresh of http://www.apple.com

        * platform/graphics/BitmapImage.h: Use RetainPtr for m_nsImage and m_tiffRep
        * platform/graphics/mac/ImageMac.mm:
        (WebCore::BitmapImage::initPlatformData): No need to do anything now
        (WebCore::BitmapImage::invalidatePlatformData): Simplify
        (WebCore::BitmapImage::getTIFFRepresentation): Use RetainPtr to avoid leaks
        (WebCore::BitmapImage::getNSImage): Use RetainPtr to avoid leaks

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

WebCore/ChangeLog

index aa6e0fd..0bcfa9e 100644 (file)
@@ -1,3 +1,16 @@
+2007-08-15  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Geoff.
+
+        <rdar://problem/5389696> leak of 32-byte NSData object (and more?) in WebIconDatabase code path with each refresh of http://www.apple.com
+        
+        * platform/graphics/BitmapImage.h: Use RetainPtr for m_nsImage and m_tiffRep
+        * platform/graphics/mac/ImageMac.mm:
+        (WebCore::BitmapImage::initPlatformData): No need to do anything now
+        (WebCore::BitmapImage::invalidatePlatformData): Simplify
+        (WebCore::BitmapImage::getTIFFRepresentation): Use RetainPtr to avoid leaks
+        (WebCore::BitmapImage::getNSImage): Use RetainPtr to avoid leaks
+
 2007-08-15  Darin Adler  <darin@apple.com>
 
         Reviewed by Anders.