slide_t *x = malloc(sizeof(slide_t));
x->line = NULL;
x->prev = x->next = NULL;
- x->lines = 0;
+ x->lines = x->stop = 0;
return x;
}
line_t *next;
while (line) {
next = line->next;
- (line->text->delete)(line->text);
+ if(line->text)
+ (line->text->delete)(line->text);
free(line);
line = next;
}