Fix logic error in DocLoader::clearPreloads()
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 May 2008 23:06:01 +0000 (23:06 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 May 2008 23:06:01 +0000 (23:06 +0000)
commit1bfd1b8e2feaa93f85920120ac8017a7d36c053d
treec9815d1dd2825f3c72878c6dc965f7524a6e5579
parent21deeae51250774b838de0e8bcf94f42fd285c4a
    Fix logic error in DocLoader::clearPreloads()

        Reviewed by Antti.

        * loader/DocLoader.cpp:
        (WebCore::DocLoader::clearPreloads): Be sure to decrease the preload count for
        the cached resource before trying to remove it from the cache.  A non-zero
        preload count can prevent the resource from being removed from the cache.

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