Fixed some crashes seen on the WebKit2 buildbot
Created attachment 80725 [details] Patch
Looking at this further, I think the patch here is a good refactoring, but it doesn't seem to fix the underlying cause of these crashes. The cause seems to be, not objects relying on destructor order, but objects not having their destructors run at all.
Retitling since this patch doesn't seem to fully fix the WebKit2 bot regression, but I'd still like to land it on its own. I'm going to wait to land this until the regressions are sorted out, since this patch seems to cover them up somewhat.
Committed r77360: <http://trac.webkit.org/changeset/77360>