/* This file was adapted from Microsoft Rich Text Format Specification 1.6  */
static void FreeLine(RTF_Line *line)
/* This file was adapted from Microsoft Rich Text Format Specification 1.6  */
static void FreeLine(RTF_Line *line)
{
    while (line->startSurface)
    {
        RTF_Surface *surface = line->startSurface;
        line->startSurface = surface->next;
        RTF_FreeSurface(surface->surface);
        free(surface);
    }
    while (line->start)
    {
        RTF_TextBlock *text = line->start;
        line->start = text->next;
        FreeTextBlock(text);
    }
    free(line);
}