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)
commit53f55f3e6382dd9fc50124c5ff232c13c0e39a7d
treeacc7015ee6f22701c5c32f5aba85fe28532b4e04
parent1ba9f1a09ac23a960ba15eee7758e7d4d4a31463
    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

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