Fix several leaks of CGContext in API tests.
Created attachment 414237 [details] Patch
Committed r269857: <https://trac.webkit.org/changeset/269857> All reviewed patches have been landed. Closing bug and clearing flags on attachment 414237 [details].
<rdar://problem/71443847>