WebCore::fillWithEmptyClients adopts new empty clients before leaking their pointers
Created attachment 214428 [details] Patch
Comment on attachment 214428 [details] Patch These should just use NeverDestroyed instead.
(In reply to comment #2) > These should just use NeverDestroyed instead. So you prefer NeverDestroyed<unique_ptr<X>> to, say, X& for these kinds of globals?
(In reply to comment #3) > (In reply to comment #2) > > These should just use NeverDestroyed instead. > > So you prefer NeverDestroyed<unique_ptr<X>> to, say, X& for these kinds of globals? std::unique_ptr isn't that useful (or required) here.
I believe there is an argument in favor of it that Anders may wish to make. Iād like to hear more from him.
(In reply to comment #3) > (In reply to comment #2) > > These should just use NeverDestroyed instead. > > So you prefer NeverDestroyed<unique_ptr<X>> to, say, X& for these kinds of globals? No, just NeverDestroyed<X>.
(In reply to comment #6) > No, just NeverDestroyed<X>. Oh, right. Sorry, I guess I overlooked that possibility. Does seem better to avoid the heap memory allocation altogether.
Created attachment 214834 [details] Patch
Comment on attachment 214834 [details] Patch Clearing flags on attachment: 214834 Committed r157807: <http://trac.webkit.org/changeset/157807>
All reviewed patches have been landed. Closing bug.