Stop leaking all CACFContexts
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 May 2010 02:14:10 +0000 (02:14 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 May 2010 02:14:10 +0000 (02:14 +0000)
commit1ee325bc2b7827171ac2e24fe34b9bda62917718
treea602dfe3542e86e11e8fb38dcc365029d3aca5c7
parent17996e0a7146f173cbdd9b6ff9cd059176ac1c6a
Stop leaking all CACFContexts

Fixes <http://webkit.org/b/39466> <rdar://problem/8007141>.

Reviewed by Simon Fraser.

* platform/graphics/win/WKCACFContextFlusher.cpp:
(WebCore::WKCACFContextFlusher::addContext): Only retain the context
when we first add it to the m_contexts set. Otherwise we'll retain the
same context multiple times, causing it to leak.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@59897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/win/WKCACFContextFlusher.cpp