MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / PSL_endsession

Function PSL_endsession

src/postscriptlight.c:3635–3649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3633}
3634
3635int PSL_endsession (struct PSL_CTRL *PSL) {
3636 /* Free up memory used by the PSL control structure */
3637 int i;
3638 if (!PSL) return (PSL_NO_SESSION); /* Never was allocated */
3639
3640 psl_freeplot (PSL);
3641 PSL_free (PSL->internal.font);
3642 for (i = 0; i < PSL->internal.n_userimages; i++) PSL_free (PSL->internal.user_image[i]);
3643 PSL_free (PSL->internal.SHAREDIR);
3644 PSL_free (PSL->internal.USERDIR);
3645 PSL_free (PSL->init.encoding);
3646 PSL_free (PSL->init.session);
3647 PSL_free (PSL);
3648 return (PSL_NO_ERROR);
3649}
3650
3651int PSL_beginlayer (struct PSL_CTRL *PSL, int layer) {
3652 /* Issue begin group command */

Callers 3

PSL_endsession_Function · 0.85
gmt_endFunction · 0.85
mainFunction · 0.85

Calls 1

psl_freeplotFunction · 0.85

Tested by

no test coverage detected