WebCore::fillWithEmptyClients adopts new empty clients before leaking their pointers
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Oct 2013 20:16:49 +0000 (20:16 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Oct 2013 20:16:49 +0000 (20:16 +0000)
commit8a84257999fa4037fb90401018e08e0627f065f3
tree7ca8d7a0f2b0a3f8d268d117bc7cd645da7ec20a
parent9ec619b23e66c9639ad8aa14b465bc1dc19c0ff2
WebCore::fillWithEmptyClients adopts new empty clients before leaking their pointers
https://bugs.webkit.org/show_bug.cgi?id=122945

Reviewed by Anders Carlsson.

* loader/EmptyClients.cpp:
(WebCore::fillWithEmptyClients): Store the static empty clients as NeverDestroyed, rather than
adopting the pointer of each heap-allocated object and then immediately leaking that pointer.

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