pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support for interupting slides line by line, #45, #75
[smdp.git]
/
src
/
markdown.c
diff --git
a/src/markdown.c
b/src/markdown.c
index
22ebdbf
..
dd1ea48
100644
(file)
--- a/
src/markdown.c
+++ b/
src/markdown.c
@@
-43,7
+43,7
@@
slide_t *new_slide() {
slide_t *x = malloc(sizeof(slide_t));
x->line = NULL;
x->prev = x->next = NULL;
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;
}
return x;
}
@@
-66,7
+66,8
@@
void free_line(line_t *line) {
line_t *next;
while (line) {
next = line->next;
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;
}
free(line);
line = next;
}