Index: ttf2lht/drv_poly.c =================================================================== --- ttf2lht/drv_poly.c (revision 20261) +++ ttf2lht/drv_poly.c (revision 20262) @@ -134,12 +134,14 @@ r_NoHolesPolygonDicer(s->pa, emit, s); printf(" }\n"); } - else + else { fprintf(stderr, "Invalid outlines\n"); + pcb_polyarea_free(&s->pa); + } printf(" }\n"); s->neg = s->pos = s->curr = NULL; - pcb_polyarea_free(&s->pa); + } void stroke_poly_uninit(pcb_ttf_stroke_t *s_)