The "create" methods of QtPlatformPlugin allocate memory and pass ownership of the created object. Therefore, they should return PassOwnPtrs instead of raw pointers. That would let use get rid a bunch of manual calls to delete.
Created attachment 93617 [details] Patch
Committed r86537: <http://trac.webkit.org/changeset/86537>