/*
* An implementation of markdown objects.
- * Copyright (C) 2014 Michael Goehler
+ * Copyright (C) 2018 Michael Goehler
*
* This file is part of mdp.
*
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;
}
while (slide) {
free_line(slide->line);
next = slide->next;
- if (slide == NULL)
- return;
free(slide);
slide = next;
}