tweaked 10.9 cgcontext memory management again