tweaked 10.9 cgcontext memory management again
Merge pull request #2 from markd2/md-use-cg-api

tweaked 10.9 cgcontext memory management again