2007-08-15 Maciej Stachowiak <mjs@apple.com>
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Aug 2007 04:34:11 +0000 (04:34 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Aug 2007 04:34:11 +0000 (04:34 +0000)
commit8a5b288e5999859aacc58258f224dba5b0683554
tree780fab168d4ac32663d795de64b81c597b8e556d
parent53f55f3e6382dd9fc50124c5ff232c13c0e39a7d
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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/platform/graphics/BitmapImage.h
WebCore/platform/graphics/mac/ImageMac.mm