R_API RPrint *r_print_free(RPrint *p) { if (!p) return NULL; r_strht_free (p->formats); p->formats = NULL; if (p->zoom) { free (p->zoom->buf); free (p->zoom); p->zoom = NULL; } free (p); return NULL; }
R_API RPrint *r_print_free(RPrint *p) { if (!p) return NULL; r_strht_free (p->formats); p->formats = NULL; if (p->zoom) { free (p->zoom->buf); free (p->zoom); p->zoom = NULL; } R_FREE (p->lines_cache); R_FREE (p->row_offsets); free (p); return NULL; }