| 3633 | } |
| 3634 | |
| 3635 | int 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 | |
| 3651 | int PSL_beginlayer (struct PSL_CTRL *PSL, int layer) { |
| 3652 | /* Issue begin group command */ |
no test coverage detected